From 17927de45e769d4dbac5b1547464b2618150cfb4 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 10 Apr 2020 17:44:23 +0200 Subject: Implemented login page --- qml/pages/Board.qml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'qml/pages/Board.qml') 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: "" + } } -- cgit v1.2.3