From 2360c4124cfe4745ae6fd2a44562fc49ba038976 Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Sun, 6 Nov 2022 18:12:38 -0800 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20improve=20host-catalogs?= =?UTF-8?q?/new=20titling=20-=20icu-6720=20(#1417)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ Closes: icu-6720 --- addons/core/translations/resources/en-us.yaml | 2 ++ .../controllers/scopes/scope/host-catalogs/new.js | 13 +++++++++++++ .../templates/scopes/scope/host-catalogs/index.hbs | 2 +- .../templates/scopes/scope/host-catalogs/new.hbs | 3 ++- 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/addons/core/translations/resources/en-us.yaml b/addons/core/translations/resources/en-us.yaml index 4b6d6bf24..f9422c3ff 100644 --- a/addons/core/translations/resources/en-us.yaml +++ b/addons/core/translations/resources/en-us.yaml @@ -87,6 +87,8 @@ host-catalog: messages: welcome: title: Welcome to Host Catalogs + titles: + new: New Host Catalog actions: delete: Delete Host Catalog help: diff --git a/ui/admin/app/controllers/scopes/scope/host-catalogs/new.js b/ui/admin/app/controllers/scopes/scope/host-catalogs/new.js index 182b9c423..ff6276d44 100644 --- a/ui/admin/app/controllers/scopes/scope/host-catalogs/new.js +++ b/ui/admin/app/controllers/scopes/scope/host-catalogs/new.js @@ -1,7 +1,20 @@ import Controller from '@ember/controller'; +import { inject as service } from '@ember/service'; export default class ScopesScopeHostCatalogsNewController extends Controller { + // =services + + @service intl; + // =attributes queryParams = ['type']; + + /** + * Translated roles breadcrumb + * @type {string} + */ + get breadCrumb() { + return this.intl.t('resources.host-catalog.titles.new'); + } } diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/index.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/index.hbs index 85262272b..247b0cadf 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/index.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/index.hbs @@ -21,7 +21,7 @@ @route='scopes.scope.host-catalogs.new' @style='primary' > - {{t 'titles.new'}} + {{t 'resources.host-catalog.titles.new'}} {{/if}} {{/if}} diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/new.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/new.hbs index 68fad6fd1..65cbcc747 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/new.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/new.hbs @@ -8,9 +8,10 @@

- {{t 'titles.new'}} + {{t 'resources.host-catalog.titles.new'}}

+

{{t 'resources.host-catalog.description'}}