feat: Allow hiding credential params on cloud (#6687)

This commit is contained in:
Iván Ovejero 2023-07-18 11:43:28 +02:00 committed by GitHub
parent 6887b4edea
commit 2af1c24ead
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 0 deletions

View file

@ -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;

View file

@ -28,6 +28,9 @@ export class GoogleSheetsOAuth2Api implements ICredentialType {
name: 'notice',
type: 'notice',
default: '',
displayOptions: {
hideOnCloud: true,
},
},
];
}

View file

@ -29,6 +29,9 @@ export class GoogleSheetsTriggerOAuth2Api implements ICredentialType {
name: 'notice',
type: 'notice',
default: '',
displayOptions: {
hideOnCloud: true,
},
},
];
}

View file

@ -1090,6 +1090,8 @@ export interface IDisplayOptions {
show?: {
[key: string]: NodeParameterValue[] | undefined;
};
hideOnCloud?: boolean;
}
export interface INodeProperties {