[pmg-devel] [PATCH pmg-gui 2/2] gui: alow to remove subscription

Moayad Almalat m.almalat at proxmox.com
Thu May 28 10:51:31 CEST 2020


Signed-off-by: Moayad Almalat <m.almalat at proxmox.com>
---
 js/Subscription.js | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/js/Subscription.js b/js/Subscription.js
index 6b3e2ff..3956d53 100644
--- a/js/Subscription.js
+++ b/js/Subscription.js
@@ -159,6 +159,15 @@ Ext.define('PMG.Subscription', {
 			win.on('destroy', reload);
 		    }
 		},
+		{
+		    text: gettext('Remove Subscription'),
+		    xtype: 'proxmoxStdRemoveButton',
+		    confirmMsg: gettext('Are you sure to remove the subscription key?'),
+		    baseurl: baseurl,
+		    dangerous: true,
+		    selModel: false,
+		    callback: reload,
+		},
 		{
 		    text: gettext('Check'),
 		    handler: function() {
-- 
2.20.1



More information about the pmg-devel mailing list