mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ Credential fallback added, fixed Gmail documentationUrl
This commit is contained in:
@@ -112,15 +112,20 @@ export default mixins(
|
|||||||
documentationUrl (): string {
|
documentationUrl (): string {
|
||||||
if (this.editCredentials) {
|
if (this.editCredentials) {
|
||||||
const credentialType = this.$store.getters.credentialType(this.editCredentials.type);
|
const credentialType = this.$store.getters.credentialType(this.editCredentials.type);
|
||||||
return `${credentialType.documentationUrl}`;
|
if (credentialType.documentationUrl === undefined) {
|
||||||
} else {
|
return credentialType.name;
|
||||||
if (this.credentialType) {
|
|
||||||
const credentialType = this.$store.getters.credentialType(this.credentialType);
|
|
||||||
return `${credentialType.documentationUrl}`;
|
|
||||||
} else {
|
} else {
|
||||||
return ``;
|
return `${credentialType.documentationUrl}`;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
const credentialType = this.$store.getters.credentialType(this.credentialType);
|
||||||
|
if (credentialType.documentationUrl === undefined) {
|
||||||
|
return credentialType.name;
|
||||||
|
} else {
|
||||||
|
return `${credentialType.documentationUrl}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
node (): INodeUi {
|
node (): INodeUi {
|
||||||
return this.$store.getters.activeNode;
|
return this.$store.getters.activeNode;
|
||||||
@@ -348,8 +353,6 @@ export default mixins(
|
|||||||
min-width: 40%;
|
min-width: 40%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#help-logo {
|
#help-logo {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ export class GmailOAuth2Api implements ICredentialType {
|
|||||||
'googleOAuth2Api',
|
'googleOAuth2Api',
|
||||||
];
|
];
|
||||||
displayName = 'Gmail OAuth2 API';
|
displayName = 'Gmail OAuth2 API';
|
||||||
|
documentationUrl = 'google';
|
||||||
properties = [
|
properties = [
|
||||||
{
|
{
|
||||||
displayName: 'Scope',
|
displayName: 'Scope',
|
||||||
|
|||||||
Reference in New Issue
Block a user