From 579ebbe9fe355cf7a9441a331795af4edabba794 Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Fri, 4 Nov 2022 19:27:11 -0700 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20improve=20roles/new=20t?= =?UTF-8?q?itle=20-=20icu-6716=20(#1412)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ Closes: icu-6716 --- addons/core/translations/resources/en-us.yaml | 2 ++ ui/admin/app/controllers/scopes/scope/roles/new.js | 2 +- ui/admin/app/templates/scopes/scope/roles/index.hbs | 2 +- ui/admin/app/templates/scopes/scope/roles/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 4e1633cee..019cb7a1a 100644 --- a/addons/core/translations/resources/en-us.yaml +++ b/addons/core/translations/resources/en-us.yaml @@ -240,6 +240,8 @@ role: messages: welcome: title: Welcome to Roles + titles: + new: New Role actions: create: Create Role delete: Delete Role diff --git a/ui/admin/app/controllers/scopes/scope/roles/new.js b/ui/admin/app/controllers/scopes/scope/roles/new.js index 598ec9760..e10b87fd3 100644 --- a/ui/admin/app/controllers/scopes/scope/roles/new.js +++ b/ui/admin/app/controllers/scopes/scope/roles/new.js @@ -13,6 +13,6 @@ export default class ScopesScopeRolesNewController extends Controller { * @type {string} */ get breadCrumb() { - return this.intl.t('titles.new'); + return this.intl.t('resources.role.titles.new'); } } diff --git a/ui/admin/app/templates/scopes/scope/roles/index.hbs b/ui/admin/app/templates/scopes/scope/roles/index.hbs index 6790efbce..54867df35 100644 --- a/ui/admin/app/templates/scopes/scope/roles/index.hbs +++ b/ui/admin/app/templates/scopes/scope/roles/index.hbs @@ -18,7 +18,7 @@ {{#if (can 'create model' this.scope collection='roles')}} {{#if @model}} {{t - 'titles.new' + 'resources.role.titles.new' }} {{/if}} {{/if}} diff --git a/ui/admin/app/templates/scopes/scope/roles/new.hbs b/ui/admin/app/templates/scopes/scope/roles/new.hbs index a3bbfdaa7..e658e08e1 100644 --- a/ui/admin/app/templates/scopes/scope/roles/new.hbs +++ b/ui/admin/app/templates/scopes/scope/roles/new.hbs @@ -6,7 +6,11 @@ -

{{t 'titles.new'}}

+

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

+

{{t 'resources.role.description'}}