ui: auth/token selector: tell ExtJS we injected data into the store
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
38260cddf5
commit
5e8b97178e
@ -60,6 +60,8 @@ Ext.define('PBS.form.AuthidSelector', {
|
|||||||
}
|
}
|
||||||
|
|
||||||
me.store.loadData(records);
|
me.store.loadData(records);
|
||||||
|
// we need to re-set the value, ExtJS doesn't knows that we injected data into the store
|
||||||
|
me.setValue(me.value);
|
||||||
me.validate();
|
me.validate();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ Ext.define('PBS.form.TokenSelector', {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onLoad: function(store, data, success) {
|
onLoad: function(store, data, success) {
|
||||||
|
let me = this;
|
||||||
if (!success) return;
|
if (!success) return;
|
||||||
|
|
||||||
let tokenStore = this.store;
|
let tokenStore = this.store;
|
||||||
@ -49,6 +50,9 @@ Ext.define('PBS.form.TokenSelector', {
|
|||||||
});
|
});
|
||||||
|
|
||||||
tokenStore.loadData(records);
|
tokenStore.loadData(records);
|
||||||
|
// we need to re-set the value, ExtJS doesn't knows that we injected data into the store
|
||||||
|
me.setValue(me.value);
|
||||||
|
me.validate();
|
||||||
},
|
},
|
||||||
|
|
||||||
listConfig: {
|
listConfig: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user