[pbs-devel] [PATCH proxmox-backup 1/1] ui: mask unmounted datastores in datastore overview
Stefan Hanreich
s.hanreich at proxmox.com
Thu Nov 28 11:40:32 CET 2024
Currently, showing the Datastore summary page leads to errors since
the status returned by the API does not contain any fields that are
checked by the component rendering the datastore summary. We solve
this by checking if the datastore is currently mounted first and mask
the element if it is currently unmounted.
Signed-off-by: Stefan Hanreich <s.hanreich at proxmox.com>
---
www/datastore/DataStoreListSummary.js | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/www/datastore/DataStoreListSummary.js b/www/datastore/DataStoreListSummary.js
index f7ea83e7..b43f1ab2 100644
--- a/www/datastore/DataStoreListSummary.js
+++ b/www/datastore/DataStoreListSummary.js
@@ -35,6 +35,13 @@ Ext.define('PBS.datastore.DataStoreListSummary', {
let me = this;
let vm = me.getViewModel();
+ if (statusData['mount-status'] === 'notmounted') {
+ let maskMessage = gettext('Datastore is not mounted');
+ let maskIcon = 'fa pbs-unplugged-mask';
+ me.mask(maskMessage, maskIcon);
+ return;
+ }
+
if (statusData.error !== undefined) {
Proxmox.Utils.API2Request({
url: `/config/datastore/${statusData.store}`,
--
2.39.5
More information about the pbs-devel
mailing list