Skip to content

Instantly share code, notes, and snippets.

@m-primo
Forked from free-pmx/pve-nag.free-pmx.rst
Created November 16, 2024 12:12
Show Gist options
  • Save m-primo/590f7346859517f9ac1234a677788669 to your computer and use it in GitHub Desktop.
Save m-primo/590f7346859517f9ac1234a677788669 to your computer and use it in GitHub Desktop.

Within /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js,
there's a function checked_command: function(orig_cmd),
inside of which:

--- proxmoxlib.js
+++ proxmoxlib.no-nag.js

         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();
-            }
         },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment