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:
Thomas Lamprecht 2022-05-14 12:28:01 +02:00
parent 8122eaadaa
commit 9f4d9abbf6
2 changed files with 2 additions and 3 deletions

View File

@ -156,7 +156,7 @@ Ext.define('PBS.view.main.NavigationTree', {
view.rstore = Ext.create('Proxmox.data.UpdateStore', { view.rstore = Ext.create('Proxmox.data.UpdateStore', {
autoStart: true, autoStart: true,
interval: 5 * 1000, interval: 5 * 1000,
storeid: 'pbs-datastore-list', storeId: 'pbs-datastore-list', // NOTE: this is queried by selectors, avoid change!
model: 'pbs-datastore-list', model: 'pbs-datastore-list',
}); });

View File

@ -33,8 +33,7 @@ Ext.define('PBS.data.PermissionPathsStore', {
config = config || {}; config = config || {};
me.callParent([config]); me.callParent([config]);
// TODO: this is but a HACK until we have some sort of resource // TODO: this is but a HACK until we have some sort of resource storage like PVE
// storage like PVE
let datastores = Ext.data.StoreManager.lookup('pbs-datastore-list'); let datastores = Ext.data.StoreManager.lookup('pbs-datastore-list');
if (datastores) { if (datastores) {