chore: Add host-sets route to target
This commit is contained in:
11 files changed
+59
-1
No files matched your search
@@ -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}}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{{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>
|
||||
|
||||
|
||||
+11
@@ -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);
|
||||
});
|
||||
});
|
||||
+11
@@ -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);
|
||||
});
|
||||
});
|
||||
+11
@@ -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);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user