ui: fix storeId casing to register store correctly
we query that store to add the datastore specific ACL paths to improve UX there, this failed a while due the StoreManager lookup always failing as the store wasn't registered in the StoreManager due to using storeid vs. correct storeId Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
8122eaadaa
commit
9f4d9abbf6
|
@ -156,7 +156,7 @@ Ext.define('PBS.view.main.NavigationTree', {
|
|||
view.rstore = Ext.create('Proxmox.data.UpdateStore', {
|
||||
autoStart: true,
|
||||
interval: 5 * 1000,
|
||||
storeid: 'pbs-datastore-list',
|
||||
storeId: 'pbs-datastore-list', // NOTE: this is queried by selectors, avoid change!
|
||||
model: 'pbs-datastore-list',
|
||||
});
|
||||
|
||||
|
|
|
@ -33,8 +33,7 @@ Ext.define('PBS.data.PermissionPathsStore', {
|
|||
config = config || {};
|
||||
me.callParent([config]);
|
||||
|
||||
// TODO: this is but a HACK until we have some sort of resource
|
||||
// storage like PVE
|
||||
// TODO: this is but a HACK until we have some sort of resource storage like PVE
|
||||
let datastores = Ext.data.StoreManager.lookup('pbs-datastore-list');
|
||||
|
||||
if (datastores) {
|
||||
|
|
Loading…
Reference in New Issue