]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
close #3114: ui: snapshots: switch Edit and Remove Button & add warning logo
authorMoayad Almalat <m.almalat@proxmox.com>
Mon, 9 Nov 2020 11:40:10 +0000 (12:40 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 23 Nov 2020 12:57:40 +0000 (13:57 +0100)
Signed-off-by: Moayad Almalat <m.almalat@proxmox.com>
www/manager6/tree/SnapshotTree.js

index 7b5ac3ed84dfd344b8d0318559e705aa30f1f800..1b33e729feb32fbbb3f61818e1f7c67d04d498a7 100644 (file)
@@ -264,10 +264,22 @@ Ext.define('PVE.guest.SnapshotTree', {
            },
            handler: 'rollback',
        },
+       {
+           xtype: 'proxmoxButton',
+           text: gettext('Edit'),
+           bind: {
+               text: '{buttonText}',
+               disabled: '{!isSnapshot}',
+           },
+           disabled: true,
+           edit: true,
+           handler: 'editSnapshot',
+       },
        {
            xtype: 'proxmoxButton',
            text: gettext('Remove'),
            disabled: true,
+           dangerous: true,
            bind: {
                disabled: '{!canRemove}',
            },
@@ -281,17 +293,6 @@ Ext.define('PVE.guest.SnapshotTree', {
            },
            handler: 'remove',
        },
-       {
-           xtype: 'proxmoxButton',
-           text: gettext('Edit'),
-           bind: {
-               text: '{buttonText}',
-               disabled: '{!isSnapshot}',
-           },
-           disabled: true,
-           edit: true,
-           handler: 'editSnapshot',
-       },
        {
            xtype: 'label',
            text: gettext("The current guest configuration does not support taking new snapshots"),