chore: 🤖 improve host-sets/new titling - icu-6721 (#1418)

✅ Closes: icu-6721
This commit is contained in:
Randall Morey authored and GitHub committed 2022-11-07 12:46:32 -08:00
1 parent 2ec2c2934c
commit a24f5b4107
4 files changed
+40 -2

No files matched your search

@@ -111,6 +111,8 @@ host-set:
title: Host Set
title_plural: Host Sets
description: A host set is a collection of hosts within a host catalog.
titles:
new: New Host Set
actions:
add: Add Host Set
create: New Host Set
@@ -1,4 +1,5 @@
<h2>
{{t 'titles.new'}}
{{t 'resources.host-set.titles.new'}}
<DocLink @doc='host-set.new' @iconSize='large' />
</h2>
</h2>
<p>{{t 'resources.host-set.description'}}</p>
@@ -0,0 +1,18 @@
import Controller from '@ember/controller';
import { inject as service } from '@ember/service';
export default class ScopesScopeHostCatalogsHostCatalogHostSetsNewController extends Controller {
// =services
@service intl;
// =attributes
/**
* Translated roles breadcrumb
* @type {string}
*/
get breadCrumb() {
return this.intl.t('resources.host-set.titles.new');
}
}
@@ -0,0 +1,17 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module(
'Unit | Controller | scopes/scope/host-catalogs/host-catalog/host-sets/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/host-sets/new'
);
assert.ok(controller);
});
}
);