refactor: Move /target/hosts redirection into /target/index
This commit is contained in:
2 files changed
+9
-8
No files matched your search
@@ -13,14 +13,6 @@ export default class ScopesScopeProjectsTargetsTargetRoute extends Route {
|
||||
return this.store.findRecord('target', target_id, { reload: true });
|
||||
}
|
||||
|
||||
/**
|
||||
* Navigate to hostsets within a target.
|
||||
* @param {TargetModel} model
|
||||
*/
|
||||
afterModel(model) {
|
||||
this.transitionTo('scopes.scope.projects.targets.target.hosts', model);
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders the target-specific templates for header and navigation
|
||||
* page sections.
|
||||
|
||||
@@ -1,4 +1,13 @@
|
||||
import Route from '@ember/routing/route';
|
||||
|
||||
export default class ScopesScopeProjectsTargetsTargetIndexRoute extends Route {
|
||||
// =methods
|
||||
|
||||
/**
|
||||
* Navigate to hosts within a target.
|
||||
*/
|
||||
afterModel() {
|
||||
this.transitionTo('scopes.scope.projects.targets.target.hosts');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user