public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Moayad Almalat <m.almalat@proxmox.com>
To: pve-devel@pve.proxmox.com
Subject: [pve-devel] [PATCH pve-manager 1/1] close #3114: ui: snapshots: switch Edit and Remove Button & add warning logo
Date: Mon,  9 Nov 2020 12:40:10 +0100	[thread overview]
Message-ID: <20201109114010.200281-1-m.almalat@proxmox.com> (raw)

Signed-off-by: Moayad Almalat <m.almalat@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




             reply	other threads:[~2020-11-09 11:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-09 11:40 Moayad Almalat [this message]
2020-11-23 13:00 ` [pve-devel] applied: " Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201109114010.200281-1-m.almalat@proxmox.com \
    --to=m.almalat@proxmox.com \
    --cc=pve-devel@pve.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal