Skip to content

Commit

Permalink
feat: Update credential test error message for sharees (#4864)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgrozav authored Dec 12, 2022
1 parent 6f1b78d commit 4765d76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions packages/editor-ui/src/plugins/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@
"credentialEdit.credentialConfig.clickToCopy": "Click To Copy",
"credentialEdit.credentialConfig.connectionTestedSuccessfully": "Connection tested successfully",
"credentialEdit.credentialConfig.couldntConnectWithTheseSettings": "Couldn’t 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",
Expand Down

0 comments on commit 4765d76

Please sign in to comment.