]> git.proxmox.com Git - pmg-gui.git/commitdiff
fix wrong 'no subscription' toolbar
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 26 Feb 2019 13:22:05 +0000 (14:22 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 27 Feb 2019 05:40:53 +0000 (06:40 +0100)
remove the toolbar altogether when there is a valid subscription,
since on every navigate to the page, framework7 shows it again

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

index b0e082b83ea113c40ffd6b2ac88c1703198cce4f..2b27d3653b9cb0e51c2f28bf6c62ab85b24071de 100644 (file)
@@ -153,7 +153,7 @@ var PMG = {
                        resolve();
                    }
                } else {
-                   app.toolbar.hide('.toolbar.subscription');
+                   $$('.toolbar.subscription').remove();
                    resolve();
                }
            });