From 05df17e3626baf50b709265cf90f2e34def96e18 Mon Sep 17 00:00:00 2001 From: jiangcuo Date: Mon, 20 Jan 2025 16:50:42 +0800 Subject: [PATCH] remove subscription check --- .../patches/001-remove-subscription.patch | 30 +++++++++++++++++++ packages/proxmox-widget-toolkit/series | 1 + 2 files changed, 31 insertions(+) create mode 100644 packages/proxmox-widget-toolkit/patches/001-remove-subscription.patch create mode 100644 packages/proxmox-widget-toolkit/series diff --git a/packages/proxmox-widget-toolkit/patches/001-remove-subscription.patch b/packages/proxmox-widget-toolkit/patches/001-remove-subscription.patch new file mode 100644 index 0000000..7f3efe1 --- /dev/null +++ b/packages/proxmox-widget-toolkit/patches/001-remove-subscription.patch @@ -0,0 +1,30 @@ +diff --git a/src/Utils.js b/src/Utils.js +index 1ee4039..106e774 100644 +--- a/src/Utils.js ++++ b/src/Utils.js +@@ -559,24 +559,7 @@ utilities: { + Ext.Msg.alert(gettext('Error'), response.htmlStatus); + }, + success: function(response, opts) { +- let res = response.result; +- if (res === null || res === undefined || !res || res +- .data.status.toLowerCase() !== 'active') { +- Ext.Msg.show({ +- title: gettext('No valid subscription'), +- icon: Ext.Msg.WARNING, +- message: Proxmox.Utils.getNoSubKeyHtml(res.data.url), +- buttons: Ext.Msg.OK, +- callback: function(btn) { +- if (btn !== 'ok') { +- return; +- } +- orig_cmd(); +- }, +- }); +- } else { +- orig_cmd(); +- } ++ console.log("lierfang subscription check"); + }, + }, + ); diff --git a/packages/proxmox-widget-toolkit/series b/packages/proxmox-widget-toolkit/series new file mode 100644 index 0000000..3dfc48a --- /dev/null +++ b/packages/proxmox-widget-toolkit/series @@ -0,0 +1 @@ +patches/001-remove-subscription.patch