diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-02-10 18:09:16 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-02-10 21:05:23 -0800 |
commit | 38f7fd6fbe5ebcb16caacb9466adeed232243d2c (patch) | |
tree | ddb8f9a2b96b61c03a870788609cf3780d13f61b /qt-mobile/qml/CloudCredentials.qml | |
parent | 055ec05e0f364e6d4aba86033ee87ab30df2d086 (diff) | |
download | subsurface-38f7fd6fbe5ebcb16caacb9466adeed232243d2c.tar.gz |
QML UI: allow changing credentials
With the integration of the credentials into the start page the logic for
this has changed.
Since the code for start page and dive list is actually on the same page,
using opacity to switch between the two sub pages (depending on whether we
have valid credentials and dives to show), the old way of changing
credentials no longer worked.
With theis patch the user once again can change their credentials (and
change their mind and go back to the dive list).
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/CloudCredentials.qml')
-rw-r--r-- | qt-mobile/qml/CloudCredentials.qml | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/qt-mobile/qml/CloudCredentials.qml b/qt-mobile/qml/CloudCredentials.qml index fbd5ae169..229c080ca 100644 --- a/qt-mobile/qml/CloudCredentials.qml +++ b/qt-mobile/qml/CloudCredentials.qml @@ -83,7 +83,19 @@ Item { manager.cloudPassword = password.text manager.saveCloudPassword = savePassword.checked manager.saveCloudCredentials() - stackView.pop() + } + } + } + Item { + height: backButton.height + width: backButton.width + visible: diveListView.count > 0 && manager.credentialStatus != QMLManager.INVALID + SubsurfaceButton { + id: backButton + text: "Back to dive list" + anchors.centerIn: parent + onClicked: { + manager.credentialStatus = oldStatus } } } |