]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: backup restore: add hint to window title on overwrite restore
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 23 Apr 2022 11:24:17 +0000 (13:24 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 23 Apr 2022 11:26:46 +0000 (13:26 +0200)
we prompt for confirmation in that case anyway, but some subtle, but
extra difference may still help

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/window/Restore.js

index a9221d53a131a66fd5a4bd63f13ab9d0ca8d4cdd..e48aac1aa92372c55b6be1182c6e71b5096e7d5b 100644 (file)
@@ -245,7 +245,7 @@ Ext.define('PVE.window.Restore', {
 
        let title = gettext('Restore') + ": " + (me.vmtype === 'lxc' ? 'CT' : 'VM');
        if (me.vmid) {
-           title += " " + me.vmid;
+           title = `${gettext('Overwrite')} ${title} ${me.vmid}`;
        }
 
        Ext.apply(me, {