fix(editor): Fix i18n translation addition (#9451)

This commit is contained in:
Csaba Tuncsik
2024-05-17 17:18:15 +02:00
committed by GitHub
parent 18933edff1
commit 04dd4760e1
2 changed files with 19 additions and 47 deletions

View File

@@ -186,6 +186,7 @@ export default defineComponent({
},
parentTypes: {
type: Array as PropType<string[]>,
default: () => [],
},
credentialData: {},
credentialId: {
@@ -274,7 +275,7 @@ export default defineComponent({
return '';
}
const appName = getAppNameFromCredType((this.credentialType as ICredentialType).displayName);
const appName = getAppNameFromCredType(this.credentialType.displayName);
return (
appName ||
@@ -282,13 +283,13 @@ export default defineComponent({
);
},
credentialTypeName(): string {
return (this.credentialType as ICredentialType)?.name;
return this.credentialType?.name;
},
credentialOwnerName(): string {
return this.credentialsStore.getCredentialOwnerNameById(`${this.credentialId}`);
},
documentationUrl(): string {
const type = this.credentialType as ICredentialType;
const type = this.credentialType;
const activeNode = this.ndvStore.activeNode;
const isCommunityNode = activeNode ? isCommunityPackageName(activeNode.type) : false;