[pve-devel] [PATCH pve-manager 1/1] close #3114: ui: snapshots: switch Edit and Remove Button & add warning logo
Moayad Almalat
m.almalat at proxmox.com
Mon Nov 9 12:40:10 CET 2020
Signed-off-by: Moayad Almalat <m.almalat at proxmox.com>
---
www/manager6/tree/SnapshotTree.js | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/www/manager6/tree/SnapshotTree.js b/www/manager6/tree/SnapshotTree.js
index 7b5ac3ed..1b33e729 100644
--- a/www/manager6/tree/SnapshotTree.js
+++ b/www/manager6/tree/SnapshotTree.js
@@ -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"),
--
2.20.1
More information about the pve-devel
mailing list