chore: 🤖 improve hosts/new titling - icu-6722 (#1419)

✅ Closes: icu-6722
This commit is contained in:
Randall Morey authored and GitHub committed 2022-11-07 13:05:40 -08:00
1 parent a24f5b4107
commit a7694bdd7f
4 files changed
+40 -2

No files matched your search

@@ -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
@@ -1,4 +1,5 @@
<h2>
{{t 'titles.new'}}
{{t 'resources.host.titles.new'}}
<DocLink @doc='host.new' @iconSize='large' />
</h2>
</h2>
<p>{{t 'resources.host.description'}}</p>
@@ -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');
}
}
@@ -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);
});
}
);