QML UI: disable some menu entries without valid credentials

This requires a patch to the mobile components that isn't upstream, yet.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-02-10 20:54:36 -08:00
parent 9d131807d7
commit 06628e03c5

View file

@ -52,6 +52,7 @@ MobileComponents.ApplicationWindow {
},
MobileComponents.ActionGroup {
text: "Manage dives"
enabled: manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL
/*
* disable for the beta to avoid confusion
Action {
@ -102,6 +103,7 @@ MobileComponents.ApplicationWindow {
MobileComponents.ActionGroup {
text: "GPS"
enabled: manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL
Action {
text: "GPS-tag dives"
onTriggered: {