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'}}