diff --git a/addons/core/translations/resources/en-us.yaml b/addons/core/translations/resources/en-us.yaml index d59c3dbe2..7dcc883f3 100644 --- a/addons/core/translations/resources/en-us.yaml +++ b/addons/core/translations/resources/en-us.yaml @@ -156,6 +156,8 @@ host: none-friendly: title: No Hosts Available description: No hosts available to display yet. + titles: + new: New Host actions: add: Add Host create: New Host diff --git a/ui/admin/app/components/host-catalogs/host-catalog/hosts/new/header/index.hbs b/ui/admin/app/components/host-catalogs/host-catalog/hosts/new/header/index.hbs index 8ed415938..2c17ba12a 100644 --- a/ui/admin/app/components/host-catalogs/host-catalog/hosts/new/header/index.hbs +++ b/ui/admin/app/components/host-catalogs/host-catalog/hosts/new/header/index.hbs @@ -1,4 +1,5 @@

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

\ No newline at end of file + +

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

\ No newline at end of file diff --git a/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/hosts/new.js b/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/hosts/new.js new file mode 100644 index 000000000..a0095e21e --- /dev/null +++ b/ui/admin/app/controllers/scopes/scope/host-catalogs/host-catalog/hosts/new.js @@ -0,0 +1,18 @@ +import Controller from '@ember/controller'; +import { inject as service } from '@ember/service'; + +export default class ScopesScopeHostCatalogsHostCatalogHostsNewController extends Controller { + // =services + + @service intl; + + // =attributes + + /** + * Translated roles breadcrumb + * @type {string} + */ + get breadCrumb() { + return this.intl.t('resources.host.titles.new'); + } +} diff --git a/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/hosts/new-test.js b/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/hosts/new-test.js new file mode 100644 index 000000000..fe3726cff --- /dev/null +++ b/ui/admin/tests/unit/controllers/scopes/scope/host-catalogs/host-catalog/hosts/new-test.js @@ -0,0 +1,17 @@ +import { module, test } from 'qunit'; +import { setupTest } from 'ember-qunit'; + +module( + 'Unit | Controller | scopes/scope/host-catalogs/host-catalog/hosts/new', + function (hooks) { + setupTest(hooks); + + // TODO: Replace this with your real tests. + test('it exists', function (assert) { + let controller = this.owner.lookup( + 'controller:scopes/scope/host-catalogs/host-catalog/hosts/new' + ); + assert.ok(controller); + }); + } +);