ui: tape: rework BackupOverview

instead of grouping by tape (which is rarely interesting),
group by pool -> group -> id -> mediaset

this way a user looking for a backup of specific vm can do just that

we may want to have an additional view here were we list all snapshots
included in the selected media-set ?

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak
2021-02-02 14:00:36 +01:00
committed by Dietmar Maurer
parent f806c0effa
commit 631e550920
2 changed files with 107 additions and 79 deletions

View File

@ -260,6 +260,15 @@ Ext.define('PBS.Utils', {
return dedup;
},
parse_snapshot_id: function(snapshot) {
if (!snapshot) {
return [undefined, undefined, undefined];
}
let [_match, type, group, id] = /^([^/]+)\/([^/]+)\/(.+)$/.exec(snapshot);
return [type, group, id];
},
get_type_icon_cls: function(btype) {
var cls = '';
if (btype.startsWith('vm')) {