mirror of
git://git.proxmox.com/git/proxmox-backup.git
synced 2025-01-10 01:18:06 +03:00
ui: tape/BackupOverview: add sublevel for groups
For tapes with many snapshots/group, a simple list of them is too big. Instead, add a level for just the groups, this makes searching for a specific backup much easier. Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
9896a75caf
commit
d938c9337a
@ -151,7 +151,20 @@ Ext.define('PBS.TapeManagement.BackupOverview', {
|
||||
children: [],
|
||||
};
|
||||
}
|
||||
tapes[tape].children.push(entry);
|
||||
let [type, group, _id] = PBS.Utils.parse_snapshot_id(entry.snapshot);
|
||||
|
||||
let children = tapes[tape].children;
|
||||
let text = `${type}/${group}`;
|
||||
if (children.length < 1 || children[children.length - 1].text !== text) {
|
||||
children.push({
|
||||
text,
|
||||
'media-set-uuid': entry['media-set-uuid'],
|
||||
leaf: false,
|
||||
iconCls: `fa ${iconCls}`,
|
||||
children: [],
|
||||
});
|
||||
}
|
||||
children[children.length - 1].children.push(entry);
|
||||
}
|
||||
|
||||
for (const tape of Object.values(tapes)) {
|
||||
|
Loading…
Reference in New Issue
Block a user