当前位置:首页 > 虚拟化 > 正文内容

如何去除PVE登录后“未订阅”的弹窗提示

4周前 (01-13)虚拟化104

使用命令:

nano /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js




搜索找到data.status !== 'Active'

              if (data.status !== 'Active') {
                    Ext.Msg.show({
                        title: gettext('No valid subscription'),
                        icon: Ext.Msg.WARNING,
                        msg: Proxmox.Utils.getNoSubKeyHtml(data.url),
                        buttons: Ext.Msg.OK,
                        callback: function(btn) {
                            if (btn !== 'ok') {
                                return;
                            }
                            orig_cmd();
                        }
                    });
                } else {
                    orig_cmd();
                }



修改为

//              if (data.status !== 'Active') {
                if(false){
                    Ext.Msg.show({
                        title: gettext('No valid subscription'),
                        icon: Ext.Msg.WARNING,
                        msg: Proxmox.Utils.getNoSubKeyHtml(data.url),
                        buttons: Ext.Msg.OK,
                        callback: function(btn) {
                            if (btn !== 'ok') {
                                return;
                            }
                            orig_cmd();
                        }
                    });
                } else {
                    orig_cmd();
                }


扫描二维码推送至手机访问。

版权声明:本文由网管老李博客发布,如需转载请注明出处。

本文链接:http://laoliit.cn/post/206.html

分享给朋友:

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。