ui: add protected icon to snapshots

if they are protected

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-10-27 13:22:36 +02:00 committed by Wolfgang Bumiller
parent adcc21716b
commit aba6189c4f

View File

@ -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,
},
{