return `Datastore ${what} ${id}`;
},
+ // mimics Display trait in backend
+ renderKeyID: function(fingerprint) {
+ return fingerprint.substring(0, 23);
+ },
+
parse_datastore_worker_id: function(type, id) {
let result;
let res;
'files',
'owner',
'verification',
+ 'fingerprint',
{ name: 'size', type: 'int', allowNull: true },
{
name: 'crypt-mode',
for (const file of data.files) {
file.text = file.filename;
file['crypt-mode'] = PBS.Utils.cryptmap.indexOf(file['crypt-mode']);
+ file.fingerprint = data.fingerprint;
file.leaf = true;
file.matchesFilter = true;
if (iconCls) {
iconTxt = `<i class="fa fa-fw fa-${iconCls}"></i> `;
}
- return (iconTxt + PBS.Utils.cryptText[v]) || Proxmox.Utils.unknownText;
+ let tip;
+ if (v !== PBS.Utils.cryptmap.indexOf('none') && record.data.fingerprint !== undefined) {
+ tip = "Key: " + PBS.Utils.renderKeyID(record.data.fingerprint);
+ }
+ let txt = (iconTxt + PBS.Utils.cryptText[v]) || Proxmox.Utils.unknownText;
+ if (record.parentNode.id === 'root' || tip === undefined) {
+ return txt;
+ } else {
+ return `<span data-qtip="${tip}">${txt}</span>`;
+ }
},
},
{