From 5e3f6931131f3757b7b088bff3369300e1568bbc Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Thu, 3 Nov 2022 18:52:43 -0700 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20improve=20users/new=20t?= =?UTF-8?q?itle=20-=20icu-6713=20(#1408)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ Closes: icu-6713 --- addons/core/translations/resources/en-us.yaml | 2 ++ ui/admin/app/controllers/scopes/scope/users/new.js | 2 +- ui/admin/app/templates/scopes/scope/users/index.hbs | 2 +- ui/admin/app/templates/scopes/scope/users/new.hbs | 6 +++++- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/addons/core/translations/resources/en-us.yaml b/addons/core/translations/resources/en-us.yaml index 8ec4ff544..4ae6ec0c3 100644 --- a/addons/core/translations/resources/en-us.yaml +++ b/addons/core/translations/resources/en-us.yaml @@ -226,6 +226,8 @@ user: no-accounts: title: No Accounts Available description: There are no accounts available to add to this user. + titles: + new: New User actions: add-accounts: Add Accounts delete: Delete User diff --git a/ui/admin/app/controllers/scopes/scope/users/new.js b/ui/admin/app/controllers/scopes/scope/users/new.js index 91d3f0cb4..d59042beb 100644 --- a/ui/admin/app/controllers/scopes/scope/users/new.js +++ b/ui/admin/app/controllers/scopes/scope/users/new.js @@ -13,6 +13,6 @@ export default class ScopesScopeUsersNewController extends Controller { * @type {string} */ get breadCrumb() { - return this.intl.t('titles.new'); + return this.intl.t('resources.user.titles.new'); } } diff --git a/ui/admin/app/templates/scopes/scope/users/index.hbs b/ui/admin/app/templates/scopes/scope/users/index.hbs index 3b6259879..756637a59 100644 --- a/ui/admin/app/templates/scopes/scope/users/index.hbs +++ b/ui/admin/app/templates/scopes/scope/users/index.hbs @@ -18,7 +18,7 @@ {{#if (can 'create model' this.scope collection='users')}} {{#if @model}} {{t - 'titles.new' + 'resources.user.titles.new' }} {{/if}} {{/if}} diff --git a/ui/admin/app/templates/scopes/scope/users/new.hbs b/ui/admin/app/templates/scopes/scope/users/new.hbs index 39674ace5..381857720 100644 --- a/ui/admin/app/templates/scopes/scope/users/new.hbs +++ b/ui/admin/app/templates/scopes/scope/users/new.hbs @@ -7,7 +7,11 @@ -

{{t 'titles.new'}}

+

+ {{t 'resources.user.titles.new'}} + +

+

{{t 'resources.user.description'}}