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: [],
|
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)) {
|
for (const tape of Object.values(tapes)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user