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:
parent
9d131807d7
commit
06628e03c5
@ -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: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user