[pbs-devel] [PATCH v2 proxmox-backup 13/15] ui: display row as disabled in ds statistics
Hannes Laimer
h.laimer at proxmox.com
Mon Aug 30 13:15:03 CEST 2021
Show row in datastore statistics list as disable, if the datastore is
not available.
---
www/dashboard/DataStoreStatistics.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/www/dashboard/DataStoreStatistics.js b/www/dashboard/DataStoreStatistics.js
index 544f40da..29d6e43d 100644
--- a/www/dashboard/DataStoreStatistics.js
+++ b/www/dashboard/DataStoreStatistics.js
@@ -68,6 +68,9 @@ Ext.define('PBS.DatastoreStatistics', {
sortable: true,
renderer: (value, metaData, record, rowIndex, colIndex, store) => {
let err = record.get('error');
+ if (!record.get('is-available')) {
+ metaData.tdCls = 'proxmox-disabled-row';
+ }
if (err) {
metaData.tdAttr = `data-qtip="${Ext.htmlEncode(err)}"`;
metaData.tdCls = 'proxmox-invalid-row';
--
2.30.2
More information about the pbs-devel
mailing list