UX: Improve account association when account description is missing

This commit is contained in:
David Taylor 2019-07-27 16:37:21 +01:00
parent 1922d4bf78
commit 3324747afe
2 changed files with 11 additions and 4 deletions

View File

@ -10,9 +10,14 @@
</div>
{{/if}}
{{i18n "user.associated_accounts.confirm_description"
provider=(i18n (concat "login." model.provider_name ".name"))
account_description=model.account_description}}
{{#if model.account_description}}
{{i18n "user.associated_accounts.confirm_description.account_specific"
provider=(i18n (concat "login." model.provider_name ".name"))
account_description=model.account_description}}
{{else}}
{{i18n "user.associated_accounts.confirm_description.generic"
provider=(i18n (concat "login." model.provider_name ".name"))}}
{{/if}}
{{/d-modal-body}}
<div class="modal-footer">

View File

@ -1024,7 +1024,9 @@ en:
cancel: "Cancel"
not_connected: "(not connected)"
confirm_modal_title: "Connect %{provider} Account"
confirm_description: "Your %{provider} account '%{account_description}' will be used for authentication."
confirm_description:
account_specific: "Your %{provider} account '%{account_description}' will be used for authentication."
generic: "Your %{provider} account will be used for authentication."
name:
title: "Name"