[pve-devel] [PATCH manager] ui: snapshot tree: warn that current state is lost when confirming rollback

Fabian Ebner f.ebner at proxmox.com
Mon May 2 14:21:53 CEST 2022


Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
 www/manager6/tree/SnapshotTree.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/tree/SnapshotTree.js b/www/manager6/tree/SnapshotTree.js
index 6b2431f5..97268072 100644
--- a/www/manager6/tree/SnapshotTree.js
+++ b/www/manager6/tree/SnapshotTree.js
@@ -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',
 	},
-- 
2.30.2





More information about the pve-devel mailing list