render_pbs_fingerprint: fp => fp.substring(0, 23),
+ render_backup_encryption: function(v, meta, record) {
+ if (!v) {
+ return gettext('No');
+ }
+
+ let tip = '';
+ if (v.match(/^[a-fA-F0-9]{2}:/)) { // fingerprint
+ tip = `Key fingerprint ${PVE.Utils.render_pbs_fingerprint(v)}`;
+ }
+ let icon = `<i class="fa fa-fw fa-lock good"></i>`;
+ return `<span data-qtip="${tip}">${icon} ${gettext('Encrypted')}</span>`;
+ },
+
render_backup_status: function(value, meta, record) {
if (typeof value == 'undefined') {
return "";
if (storage) {
let isPBS = storage.data.type === 'pbs';
me.getColumns().forEach((column) => {
- if (column.dataIndex === 'verification') {
+ let id = column.dataIndex;
+ if (id === 'verification' || id === 'encrypted') {
column.setHidden(!isPBS);
}
});
dataIndex: 'vmid',
hidden: true,
},
+ {
+ header: gettext('Encrypted'),
+ dataIndex: 'encrypted',
+ renderer: PVE.Utils.render_backup_encryption,
+ },
{
header: gettext('Verify State'),
dataIndex: 'verification',