From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 40D216726A for ; Mon, 9 Nov 2020 12:40:16 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 367CC15F78 for ; Mon, 9 Nov 2020 12:40:16 +0100 (CET) Received: from sara.proxmox.com (212-186-127-178.static.upcbusiness.at [212.186.127.178]) by firstgate.proxmox.com (Proxmox) with ESMTP id 299E515F6E for ; Mon, 9 Nov 2020 12:40:15 +0100 (CET) Received: by sara.proxmox.com (Postfix, from userid 1000) id 35544F55; Mon, 9 Nov 2020 12:40:14 +0100 (CET) From: Moayad Almalat To: pve-devel@pve.proxmox.com Date: Mon, 9 Nov 2020 12:40:10 +0100 Message-Id: <20201109114010.200281-1-m.almalat@proxmox.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 1 AWL 0.158 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods KHOP_HELO_FCRDNS 0.4 Relay HELO differs from its IP's reverse DNS NO_DNS_FOR_FROM 0.379 Envelope sender has no MX or A DNS records SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record Subject: [pve-devel] [PATCH pve-manager 1/1] close #3114: ui: snapshots: switch Edit and Remove Button & add warning logo X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Nov 2020 11:40:16 -0000 Signed-off-by: Moayad Almalat --- 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