ui: prune all: add namespace info in title

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-05-14 18:57:05 +02:00
parent e3cda36ba5
commit 9ec82aefb4
1 changed files with 5 additions and 2 deletions

View File

@ -453,8 +453,11 @@ Ext.define('PBS.DataStoreContent', {
if (!view.datastore) return; if (!view.datastore) return;
let ns = view.namespace;
let titleNS = ns && ns !== '' ? `Namespace '${ns}' on ` : '';
Ext.create('Proxmox.window.Edit', { Ext.create('Proxmox.window.Edit', {
title: `Prune Datastore '${view.datastore}'`, title: `Prune ${titleNS}Datastore '${view.datastore}'`,
onlineHelp: 'maintenance_pruning', onlineHelp: 'maintenance_pruning',
method: 'POST', method: 'POST',
submitText: "Prune", submitText: "Prune",
@ -466,7 +469,7 @@ Ext.define('PBS.DataStoreContent', {
items: [ items: [
{ {
xtype: 'pbsPruneInputPanel', xtype: 'pbsPruneInputPanel',
ns: view.namespace, ns,
dryrun: true, dryrun: true,
}, },
], ],