Fix display of new sidekick (rancher/rancher#2455)

This commit is contained in:
Vincent Fiduccia 2015-10-29 12:15:05 -07:00
parent 369c653084
commit 63d1ed78a3
1 changed files with 5 additions and 1 deletions

View File

@ -50,7 +50,11 @@ export default Ember.Component.extend(NewOrEdit, SelectTab, {
stdinOpen: true,
restartPolicy: {name: 'always'},
}));
this.send('selectLaunchConfig', ary.get('length')-1);
// Wait for it to be added to the DOM...
Ember.run.next(() => {
this.send('selectLaunchConfig', ary.get('length')-1);
});
},
removeSidekick() {