refactor: Move /target/hosts redirection into /target/index

This commit is contained in:
Susmitha Girumala committed 2021-02-04 10:54:18 -05:00
1 parent ea8bcfae1e
commit 6fd3a896ea
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');
}
}