feat: Update credential test error message for sharees (#4864)

This commit is contained in:
Alex Grozav 2022-12-12 11:53:22 +02:00 committed by GitHub
parent 6f1b78df98
commit 4765d767e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -9,7 +9,7 @@
<banner
v-if="authError && !showValidationWarning"
theme="danger"
:message="$locale.baseText('credentialEdit.credentialConfig.couldntConnectWithTheseSettings')"
:message="$locale.baseText(`credentialEdit.credentialConfig.couldntConnectWithTheseSettings${!credentialPermissions.isOwner ? '.sharee' : ''}`, { interpolate: { owner: credentialOwnerName } })"
:details="authError"
:buttonLabel="$locale.baseText('credentialEdit.credentialConfig.retry')"
buttonLoadingLabel="Retrying"
@ -204,7 +204,7 @@ export default mixins(restApi).extend({
return (this.credentialType as ICredentialType).name;
},
credentialOwnerName(): string {
return this.credentialsStore.getCredentialOwnerName(this.credentialId);
return this.credentialsStore.getCredentialOwnerName(`${this.credentialId}`);
},
documentationUrl(): string {
const type = this.credentialType as ICredentialType;

View file

@ -248,6 +248,7 @@
"credentialEdit.credentialConfig.clickToCopy": "Click To Copy",
"credentialEdit.credentialConfig.connectionTestedSuccessfully": "Connection tested successfully",
"credentialEdit.credentialConfig.couldntConnectWithTheseSettings": "Couldnt connect with these settings",
"credentialEdit.credentialConfig.couldntConnectWithTheseSettings.sharee": "Problem with connection settings. {owner} may be able to fix this",
"credentialEdit.credentialConfig.needHelpFillingOutTheseFields": "Need help filling out these fields?",
"credentialEdit.credentialConfig.oAuthRedirectUrl": "OAuth Redirect URL",
"credentialEdit.credentialConfig.openDocs": "Open docs",