mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -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;
|
||||
}
|
||||
|
||||
if (parameter.displayOptions?.hideOnCloud && this.settingsStore.isCloudDeployment) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (parameter.displayOptions === undefined) {
|
||||
// If it is not defined no need to do a proper check
|
||||
return true;
|
||||
|
|
|
@ -28,6 +28,9 @@ export class GoogleSheetsOAuth2Api implements ICredentialType {
|
|||
name: 'notice',
|
||||
type: 'notice',
|
||||
default: '',
|
||||
displayOptions: {
|
||||
hideOnCloud: true,
|
||||
},
|
||||
},
|
||||
];
|
||||
}
|
||||
|
|
|
@ -29,6 +29,9 @@ export class GoogleSheetsTriggerOAuth2Api implements ICredentialType {
|
|||
name: 'notice',
|
||||
type: 'notice',
|
||||
default: '',
|
||||
displayOptions: {
|
||||
hideOnCloud: true,
|
||||
},
|
||||
},
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1090,6 +1090,8 @@ export interface IDisplayOptions {
|
|||
show?: {
|
||||
[key: string]: NodeParameterValue[] | undefined;
|
||||
};
|
||||
|
||||
hideOnCloud?: boolean;
|
||||
}
|
||||
|
||||
export interface INodeProperties {
|
||||
|
|
Loading…
Reference in a new issue