From 06628e03c53ff51535026f8ca24aaf42c1780b70 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 10 Feb 2016 20:54:36 -0800 Subject: 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 --- qt-mobile/qml/main.qml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-mobile/qml') diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml index 7cfc768bb..657158068 100644 --- a/qt-mobile/qml/main.qml +++ b/qt-mobile/qml/main.qml @@ -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: { -- cgit v1.2.3-70-g09d2