From 3a5a02fd7162f57c7be4e0227eadb8f96036e6e2 Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Wed, 6 Aug 2025 00:11:06 +0200 Subject: [PATCH] fix(proxy): Remove subscription nag message Adjust proxmoxlib.js patch file to work with newest Proxmox code. This removes the "No valid subscription" nag pop-up message on login. --- .../proxmoxlib.js.patch | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/files/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js.patch b/files/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js.patch index 9d86e21..6f38193 100644 --- a/files/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js.patch +++ b/files/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js.patch @@ -1,14 +1,12 @@ # SPDX-License-Identifier: MIT ---- proxmoxlib.js.orig 2024-11-19 12:40:04.000000000 +0100 -+++ proxmoxlib.js 2024-12-25 08:54:10.283639449 +0100 -@@ -575,8 +575,8 @@ - let res = response.result; - if (res === null || res === undefined || !res || res - .data.status.toLowerCase() !== 'active') { -- Ext.Msg.show({ -- title: gettext('No valid subscription'), -+ void({ -+ title: gettext('No valid subscription'), - icon: Ext.Msg.WARNING, - message: Proxmox.Utils.getNoSubKeyHtml(res.data.url), - buttons: Ext.Msg.OK, +--- proxmoxlib.js.orig 2025-07-16 00:33:18.000000000 +0200 ++++ proxmoxlib.js 2025-08-06 00:01:50.479413166 +0200 +@@ -614,7 +614,7 @@ + !res || + res.data.status.toLowerCase() !== 'active' + ) { +- Ext.Msg.show({ ++ void({ + title: gettext('No valid subscription'), + icon: Ext.Msg.WARNING, + message: Proxmox.Utils.getNoSubKeyHtml(res.data.url),