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:
committed by
Dietmar Maurer
parent
f806c0effa
commit
631e550920
@ -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')) {
|
||||
|
Reference in New Issue
Block a user