ui: snapshot tree: warn that current state is lost when confirming rollback

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner 2022-05-02 14:21:53 +02:00 committed by Thomas Lamprecht
parent 8f02ea304c
commit 8d69854055

View File

@ -260,7 +260,7 @@ Ext.define('PVE.guest.SnapshotTree', {
let rec = view.getSelection()[0];
let vmid = view.getViewModel().get('vmid');
return Proxmox.Utils.format_task_description('qmrollback', vmid) +
" '" + rec.data.name + "'";
` '${rec.data.name}'? ${gettext("Current state will be lost.")}`;
},
handler: 'rollback',
},