[pve-devel] [PATCH pve-manager 1/1] sdn: remove reverts buttons

Alexandre Derumier aderumier at odiso.com
Mon Apr 13 08:20:59 CEST 2020


---
 www/manager6/sdn/ControllerView.js | 18 +-----------------
 www/manager6/sdn/VnetView.js       | 19 +------------------
 www/manager6/sdn/ZoneView.js       | 18 +-----------------
 3 files changed, 3 insertions(+), 52 deletions(-)

diff --git a/www/manager6/sdn/ControllerView.js b/www/manager6/sdn/ControllerView.js
index 68a1bb5b..2899618b 100644
--- a/www/manager6/sdn/ControllerView.js
+++ b/www/manager6/sdn/ControllerView.js
@@ -102,23 +102,7 @@ Ext.define('PVE.sdn.ControllerView', {
 		    })
 		},
 		remove_btn,
-		edit_btn,
-                {
-                    text: gettext('Revert'),
-                    handler: function() {
-                        Proxmox.Utils.API2Request({
-                            url: '/cluster/sdn/controllers/',
-                            method: 'DELETE',
-                            waitMsgTarget: me,
-                            callback: function() {
-                                reload();
-                            },
-                            failure: function(response, opts) {
-                                Ext.Msg.alert(gettext('Error'), response.htmlStatus);
-                            }
-                        });
-                    }
-                },
+		edit_btn
 	    ],
 	    columns: [
 		{
diff --git a/www/manager6/sdn/VnetView.js b/www/manager6/sdn/VnetView.js
index 8ef25fae..229e688a 100644
--- a/www/manager6/sdn/VnetView.js
+++ b/www/manager6/sdn/VnetView.js
@@ -69,24 +69,7 @@ Ext.define('PVE.sdn.VnetView', {
                     }
                 },
 		remove_btn,
-		edit_btn,
-                {
-                    text: gettext('Revert'),
-                    handler: function() {
-                        Proxmox.Utils.API2Request({
-                            url: '/cluster/sdn/vnets/',
-                            method: 'DELETE',
-                            waitMsgTarget: me,
-                            callback: function() {
-                                reload();
-                            },
-                            failure: function(response, opts) {
-                                Ext.Msg.alert(gettext('Error'), response.htmlStatus);
-                            }
-                        });
-                    }
-                },
-
+		edit_btn
 	    ],
 	    columns: [
 		{
diff --git a/www/manager6/sdn/ZoneView.js b/www/manager6/sdn/ZoneView.js
index 951a02cb..d45eb9a6 100644
--- a/www/manager6/sdn/ZoneView.js
+++ b/www/manager6/sdn/ZoneView.js
@@ -102,23 +102,7 @@ Ext.define('PVE.sdn.ZoneView', {
 		    })
 		},
 		remove_btn,
-		edit_btn,
-                {
-                    text: gettext('Revert'),
-                    handler: function() {
-                        Proxmox.Utils.API2Request({
-                            url: '/cluster/sdn/zones/',
-                            method: 'DELETE',
-                            waitMsgTarget: me,
-                            callback: function() {
-                                reload();
-                            },
-                            failure: function(response, opts) {
-                                Ext.Msg.alert(gettext('Error'), response.htmlStatus);
-                            }
-                        });
-                    }
-                },
+		edit_btn
 	    ],
 	    columns: [
 		{
-- 
2.20.1




More information about the pve-devel mailing list