chore: Add host-sets route to target

This commit is contained in:
Susmitha Girumala committed 2020-08-25 14:50:26 -04:00
1 parent 7846398135
commit 590c33f5fa
11 files changed
+59 -1

No files matched your search

+5 -1
View File
@@ -36,7 +36,11 @@ Router.map(function () {
});
});
this.route('targets', function() {
this.route('target', { path: ':target_id' }, function() {});
this.route('target', { path: ':target_id' }, function() {
this.route('host-sets', function() {
this.route('host-set');
});
});
this.route('new');
});
});
@@ -0,0 +1,5 @@
import Route from '@ember/routing/route';
export default class ScopesScopeProjectsProjectTargetsTargetHostSetsRoute extends Route {
}
@@ -0,0 +1,4 @@
import Route from '@ember/routing/route';
export default class ScopesScopeProjectsProjectTargetsTargetHostSetsHostSetRoute extends Route {
}
@@ -0,0 +1,4 @@
import Route from '@ember/routing/route';
export default class ScopesScopeProjectsProjectTargetsTargetHostSetsIndexRoute extends Route {
}
@@ -0,0 +1,3 @@
{{title (t "resources.host-sets")}}
{{outlet}}
@@ -0,0 +1 @@
Target/host-sets
@@ -13,6 +13,9 @@
<nav.link @route='scopes.scope.projects.project.targets.target'>
{{t 'titles.details'}}
</nav.link>
<nav.link @route='scopes.scope.projects.project.targets.target.host-sets'>
{{t 'titles.host-sets'}}
</nav.link>
</Rose::Nav::Tabs>
</page.navigation>
@@ -0,0 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Route | scopes/scope/projects/project/targets/target/host-sets', function(hooks) {
setupTest(hooks);
test('it exists', function(assert) {
let route = this.owner.lookup('route:scopes/scope/projects/project/targets/target/host-sets');
assert.ok(route);
});
});
@@ -0,0 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Route | scopes/scope/projects/project/targets/target/host-sets/host-set', function(hooks) {
setupTest(hooks);
test('it exists', function(assert) {
let route = this.owner.lookup('route:scopes/scope/projects/project/targets/target/host-sets/host-set');
assert.ok(route);
});
});
@@ -0,0 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Route | scopes/scope/projects/project/targets/target/host-sets/index', function(hooks) {
setupTest(hooks);
test('it exists', function(assert) {
let route = this.owner.lookup('route:scopes/scope/projects/project/targets/target/host-sets/index');
assert.ok(route);
});
});