mirror of https://github.com/rancher/ui.git
Focus in the first field for add registry and webhook page
This commit is contained in:
parent
fb6117b16e
commit
a10dad2c4f
|
|
@ -58,6 +58,10 @@ export default Ember.Component.extend(NewOrEdit, {
|
||||||
if ( !this.get(`model.${driver}Config`) ) {
|
if ( !this.get(`model.${driver}Config`) ) {
|
||||||
this.set(`model.${driver}Config`, def);
|
this.set(`model.${driver}Config`, def);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$('INPUT')[0].focus();
|
||||||
|
}, 500);
|
||||||
},
|
},
|
||||||
|
|
||||||
scaleHostActionChanged: function() {
|
scaleHostActionChanged: function() {
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,9 @@ export default Ember.Controller.extend(NewOrEdit, {
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
selectDriver: function(name) {
|
selectDriver: function(name) {
|
||||||
|
setTimeout(() => {
|
||||||
|
$('main INPUT')[0].focus();
|
||||||
|
}, 500);
|
||||||
var driver = this.get('drivers').filterBy('name',name)[0];
|
var driver = this.get('drivers').filterBy('name',name)[0];
|
||||||
this.set('activeDriver', driver.name);
|
this.set('activeDriver', driver.name);
|
||||||
this.set('model.registry.serverAddress', driver.value);
|
this.set('model.registry.serverAddress', driver.value);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue