ui: prune group: add NS info to title

restructure it a bit for better UX

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-05-14 18:47:12 +02:00
parent a3d61f3fba
commit 5d05f334f1

View File

@ -257,9 +257,11 @@ Ext.define('PBS.DataStorePrune', {
throw "no backup_id specified";
}
let ns = me.ns && me.ns !== '' ? `${me.ns} ` : '';
Ext.apply(me, {
url: '/api2/extjs/admin/datastore/' + me.datastore + "/prune",
title: `Prune Group '${me.datastore}:${me.backup_type}/${me.backup_id}'`,
title: `Prune Group '${me.backup_type}/${me.backup_id}' on '${me.datastore}:${ns}'`,
items: [{
xtype: 'pbsDataStorePruneInputPanel',
url: '/api2/extjs/admin/datastore/' + me.datastore + "/prune",