[pbs-devel] [PATCH proxmox-backup v2 11/13] ui: add protected icon to snapshots
Dominik Csapak
d.csapak at proxmox.com
Thu Sep 23 13:37:37 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 57693785..fbc3e12f 100644
--- a/www/datastore/Content.js
+++ b/www/datastore/Content.js
@@ -640,6 +640,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