From 9f4d9abbf6c17b1a9883985ff95a884dd68e045c Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Sat, 14 May 2022 12:28:01 +0200 Subject: [PATCH] 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 --- www/NavigationTree.js | 2 +- www/form/PermissionPathSelector.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/www/NavigationTree.js b/www/NavigationTree.js index 577310fd..04de8dae 100644 --- a/www/NavigationTree.js +++ b/www/NavigationTree.js @@ -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', }); diff --git a/www/form/PermissionPathSelector.js b/www/form/PermissionPathSelector.js index dd5c60b7..c5a1ccae 100644 --- a/www/form/PermissionPathSelector.js +++ b/www/form/PermissionPathSelector.js @@ -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) {