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:
Thomas Lamprecht 2020-11-09 12:21:02 +01:00
parent 38260cddf5
commit 5e8b97178e
2 changed files with 6 additions and 0 deletions

View File

@ -60,6 +60,8 @@ Ext.define('PBS.form.AuthidSelector', {
}
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();
},

View File

@ -31,6 +31,7 @@ Ext.define('PBS.form.TokenSelector', {
},
onLoad: function(store, data, success) {
let me = this;
if (!success) return;
let tokenStore = this.store;
@ -49,6 +50,9 @@ Ext.define('PBS.form.TokenSelector', {
});
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: {