[pbs-devel] [PATCH proxmox-backup v3 11/13] ui: add protected icon to snapshots

Dominik Csapak d.csapak at proxmox.com
Wed Oct 27 13:22:36 CEST 2021


if they are protected

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/datastore/Content.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/www/datastore/Content.js b/www/datastore/Content.js
index 87a9079d..375e782b 100644
--- a/www/datastore/Content.js
+++ b/www/datastore/Content.js
@@ -654,6 +654,13 @@ Ext.define('PBS.DataStoreContent', {
 	    xtype: 'treecolumn',
 	    header: gettext("Backup Group"),
 	    dataIndex: 'text',
+	    renderer: (value, meta, record) => {
+		let protect = "";
+		if (record.data.protected) {
+		    protect = ` <i class="fa fa-shield"></i>`;
+		}
+		return value + protect;
+	    },
 	    flex: 1,
 	},
 	{
-- 
2.30.2





More information about the pbs-devel mailing list