diff options
author | Marvin Borner | 2020-04-10 17:44:23 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-10 17:44:23 +0200 |
commit | 17927de45e769d4dbac5b1547464b2618150cfb4 (patch) | |
tree | 610a5e82ebecd8289343b6247f78f7d0378f9211 /qml/pages/Board.qml | |
parent | 71e4befa76e91721df2baeab99fff1b4987b0cdb (diff) |
Implemented login page
Diffstat (limited to 'qml/pages/Board.qml')
-rw-r--r-- | qml/pages/Board.qml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/qml/pages/Board.qml b/qml/pages/Board.qml index 4bb5d9c..35e2e5e 100644 --- a/qml/pages/Board.qml +++ b/qml/pages/Board.qml @@ -1,5 +1,6 @@ import QtQuick 2.0 import Sailfish.Silica 1.0 +import org.nemomobile.configuration 1.0 import ".." Page { @@ -14,6 +15,17 @@ Page { anchors.fill: parent contentHeight: column.height + PullDownMenu { + MenuItem { + text: qsTr("Login") + onClicked: { + access_token.value = ""; + refresh_token.value = ""; + pageStack.push(Qt.resolvedUrl("Login.qml")) + } + } + } + Column { id: column @@ -44,4 +56,16 @@ Page { } } } + + ConfigurationValue { + id: access_token + key: "/com/sailchess/access_token" + defaultValue: "" + } + + ConfigurationValue { + id: refresh_token + key: "/com/sailchess/refresh_token" + defaultValue: "" + } } |