[pbs-devel] [PATCH proxmox-backup 5/8] gc: hide datastore column in local gc view
Stefan Lendl
s.lendl at proxmox.com
Mon Feb 5 12:58:28 CET 2024
Signed-off-by: Stefan Lendl <s.lendl at proxmox.com>
---
www/config/GCView.js | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/www/config/GCView.js b/www/config/GCView.js
index 09e2932b..c70d1747 100644
--- a/www/config/GCView.js
+++ b/www/config/GCView.js
@@ -204,4 +204,18 @@ Ext.define('PBS.config.GCJobView', {
sortable: true,
},
],
+
+ initComponent: function() {
+ let me = this;
+ let hideLocalDatastore = !!me.datastore;
+
+ for (let column of me.columns) {
+ if (column.dataIndex === 'store') {
+ column.hidden = hideLocalDatastore;
+ break;
+ }
+ }
+
+ me.callParent();
+ },
});
--
2.43.0
More information about the pbs-devel
mailing list