[pbs-devel] [PATCH v2 proxmox-backup 4/8] gc: hide datastore column in local gc view

Stefan Lendl s.lendl at proxmox.com
Tue Feb 6 15:51:39 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 6c9e1e23..63e84111 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