summaryrefslogtreecommitdiff
path: root/qml/harbour-sailchess.qml
diff options
context:
space:
mode:
authorMarvin Borner2020-04-10 17:44:23 +0200
committerMarvin Borner2020-04-10 17:44:23 +0200
commit17927de45e769d4dbac5b1547464b2618150cfb4 (patch)
tree610a5e82ebecd8289343b6247f78f7d0378f9211 /qml/harbour-sailchess.qml
parent71e4befa76e91721df2baeab99fff1b4987b0cdb (diff)
Implemented login page
Diffstat (limited to 'qml/harbour-sailchess.qml')
-rw-r--r--qml/harbour-sailchess.qml9
1 files changed, 8 insertions, 1 deletions
diff --git a/qml/harbour-sailchess.qml b/qml/harbour-sailchess.qml
index ddc0046..6142693 100644
--- a/qml/harbour-sailchess.qml
+++ b/qml/harbour-sailchess.qml
@@ -1,10 +1,17 @@
import QtQuick 2.0
import Sailfish.Silica 1.0
+import org.nemomobile.configuration 1.0
import "pages"
ApplicationWindow
{
- initialPage: Component { Board { } }
+ initialPage: Qt.resolvedUrl(access_token.value === "" ? "pages/Login.qml" : "pages/Board.qml")
cover: Qt.resolvedUrl("cover/CoverPage.qml")
allowedOrientations: Orientation.Portrait
+
+ ConfigurationValue {
+ id: access_token
+ key: "/com/sailchess/access_token"
+ defaultValue: ""
+ }
}