mirror of https://github.com/rancher/ui.git
Jump to workload detail page if it belongs to a wrokload
https://github.com/rancher/rancher/issues/12498
This commit is contained in:
parent
b86845453c
commit
44a09b297d
|
|
@ -20,8 +20,14 @@ export default Controller.extend({
|
|||
|
||||
podStateDidChange: observer('model.state', function() {
|
||||
if ( get(this, 'model.state') === 'removed' && get(this, 'router.currentRouteName') === 'container' ) {
|
||||
const workloadId = get(this, 'model.workloadId');
|
||||
|
||||
if ( workloadId ) {
|
||||
this.transitionToRoute('workload', workloadId);
|
||||
} else {
|
||||
this.transitionToRoute('authenticated.project.index');
|
||||
}
|
||||
}
|
||||
}),
|
||||
displayEnvironmentVars: computed('selectedContainer', function() {
|
||||
var envs = [];
|
||||
|
|
|
|||
Loading…
Reference in New Issue