mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
feat: Allow hiding credential params on cloud (#6687)
This commit is contained in:
parent
6887b4edea
commit
2af1c24ead
|
@ -554,6 +554,10 @@ export default defineComponent({
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (parameter.displayOptions?.hideOnCloud && this.settingsStore.isCloudDeployment) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (parameter.displayOptions === undefined) {
|
if (parameter.displayOptions === undefined) {
|
||||||
// If it is not defined no need to do a proper check
|
// If it is not defined no need to do a proper check
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -28,6 +28,9 @@ export class GoogleSheetsOAuth2Api implements ICredentialType {
|
||||||
name: 'notice',
|
name: 'notice',
|
||||||
type: 'notice',
|
type: 'notice',
|
||||||
default: '',
|
default: '',
|
||||||
|
displayOptions: {
|
||||||
|
hideOnCloud: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,6 +29,9 @@ export class GoogleSheetsTriggerOAuth2Api implements ICredentialType {
|
||||||
name: 'notice',
|
name: 'notice',
|
||||||
type: 'notice',
|
type: 'notice',
|
||||||
default: '',
|
default: '',
|
||||||
|
displayOptions: {
|
||||||
|
hideOnCloud: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1090,6 +1090,8 @@ export interface IDisplayOptions {
|
||||||
show?: {
|
show?: {
|
||||||
[key: string]: NodeParameterValue[] | undefined;
|
[key: string]: NodeParameterValue[] | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hideOnCloud?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface INodeProperties {
|
export interface INodeProperties {
|
||||||
|
|
Loading…
Reference in a new issue