Skip to content

Commit

Permalink
Restrict nspace refreshing to the create action to avoid jittery menu
Browse files Browse the repository at this point in the history
This is possibly temporary
  • Loading branch information
John Cowen committed Nov 19, 2019
1 parent f5389c7 commit b76e01b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui-v2/app/routes/dc.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ export default Route.extend({
willTransition: function(transition) {
// This will refresh both dcs and nspaces on any route transition
// under here
this.refresh();
if (typeof transition !== 'undefined' && transition.from.name.endsWith('nspaces.create')) {
this.refresh();
}
},
},
});

0 comments on commit b76e01b

Please sign in to comment.