]> git.proxmox.com Git - pmg-gui.git/commitdiff
mobile: fix subscription check
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 22 Sep 2022 06:52:46 +0000 (08:52 +0200)
committerDominik Csapak <d.csapak@proxmox.com>
Thu, 22 Sep 2022 06:52:46 +0000 (08:52 +0200)
the change to the rust based subscription code change the case of the
status field, so do the same change as in the desktop ui

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
js/mobile/utils.js

index 33ed019a1e77d8edca0c4779983165160b0515ea..244b1e85852fe6074c8d236ce7f18e3ae183138b 100644 (file)
@@ -132,7 +132,7 @@ PMG = {
        },
        checkSubscription(data, showPopup) {
            return new Promise(function(resolve, reject) {
-               if (data.status !== 'Active') {
+               if (data.status?.toLowerCase() !== 'active') {
                    let url = data.url || 'https://wwww.proxmox.com';
                    let err = `You do not have a valid subscription for this server.
                            Please visit