summaryrefslogtreecommitdiff
path: root/app/qml/pages/WatchPage.qml
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2014-12-03 00:48:19 +0100
committerJavier <dev.git@javispedro.com>2014-12-03 00:48:19 +0100
commit69822e4dcf541a52e4202d5ff566364fb90e6ec0 (patch)
tree5485db6e7d94517f2763db735ce4cfc2eec260cd /app/qml/pages/WatchPage.qml
parent843e8c2550f69de3b9dfc3ec5f13d2c3a5710896 (diff)
implement UI for JS app configuration
Diffstat (limited to 'app/qml/pages/WatchPage.qml')
-rw-r--r--app/qml/pages/WatchPage.qml30
1 files changed, 30 insertions, 0 deletions
diff --git a/app/qml/pages/WatchPage.qml b/app/qml/pages/WatchPage.qml
index 90e5ec9..8169507 100644
--- a/app/qml/pages/WatchPage.qml
+++ b/app/qml/pages/WatchPage.qml
@@ -77,6 +77,36 @@ Page {
}
}
+
+ Label {
+ text: qsTr("App configuration")
+ font.family: Theme.fontFamilyHeading
+ color: Theme.highlightColor
+ anchors.right: parent.right
+ anchors.rightMargin: Theme.paddingMedium
+ }
+
+ Button {
+ text: "Configure current app"
+ anchors {
+ left: parent.left
+ right: parent.right
+ margins: Theme.paddingLarge
+ }
+ onClicked: {
+ var uuid = pebbled.appUuid;
+ console.log("going to configureApp " + uuid);
+ var url = pebbled.configureApp(uuid);
+ console.log("obtained configure URL " + url);
+ if (url) {
+ pageStack.push(Qt.resolvedUrl("AppConfigPage.qml"), {
+ url: url,
+ uuid: uuid
+ });
+ }
+ }
+ }
+
}
}
}