diff --git a/qml/cover/CoverPage.qml b/qml/cover/CoverPage.qml index fc562d5..7f886c6 100644 --- a/qml/cover/CoverPage.qml +++ b/qml/cover/CoverPage.qml @@ -2,21 +2,25 @@ import QtQuick 2.0 import Sailfish.Silica 1.0 CoverBackground { - Label { - id: label - anchors.centerIn: parent - text: qsTr("My Cover") + + CoverPlaceholder { + icon.source: "../img/nextcloud-logo-transparent.png" + text: qsTr("Notes") } CoverActionList { id: coverAction CoverAction { - iconSource: "image://theme/icon-cover-next" + iconSource: "image://theme/icon-cover-new" + onTriggered: { + console.log("Add note") + appWindow.activate() + } } - CoverAction { - iconSource: "image://theme/icon-cover-pause" - } + /*CoverAction { + iconSource: "image://theme/icon-cover-next" + }*/ } } diff --git a/qml/harbour-nextcloudnotes.qml b/qml/harbour-nextcloudnotes.qml index 72d1401..864128e 100644 --- a/qml/harbour-nextcloudnotes.qml +++ b/qml/harbour-nextcloudnotes.qml @@ -14,7 +14,7 @@ ApplicationWindow property int currentAccount: 0 // FIXME // For testing Component.onCompleted: { - appSettings.clear() + //appSettings.clear() //accounts[0] = { server: "127.0.0.1", username: "fu", password: "bar", lastUpdate: new Date(0) } //accounts[1] = { server: "127.0.0.2", username: "fu", password: "bar", lastUpdate: new Date(0) } //accounts[2] = { server: "127.0.0.3", username: "fu", password: "bar", lastUpdate: new Date(0) } @@ -40,10 +40,6 @@ ApplicationWindow //account: appSettings.accounts[appSettings.currentAccount] saveFile: false } - Connections { - target: notes - //onLastUpdateChanged: appSettings.lastUpdate = notes.lastUpdate - } initialPage: Component { NotesPage { } } cover: Qt.resolvedUrl("cover/CoverPage.qml") diff --git a/qml/pages/NotesApi.qml b/qml/pages/NotesApi.qml index 3cc4fd9..c661827 100644 --- a/qml/pages/NotesApi.qml +++ b/qml/pages/NotesApi.qml @@ -51,6 +51,9 @@ Item { } busy = false } + else { + console.log("HTTP ready state: " + apiReq.readyState) + } } if (method === "GET") { apiReq.send() diff --git a/translations/harbour-nextcloudnotes.ts b/translations/harbour-nextcloudnotes.ts index 2aaa60f..b26954c 100644 --- a/translations/harbour-nextcloudnotes.ts +++ b/translations/harbour-nextcloudnotes.ts @@ -19,7 +19,7 @@ CoverPage - My Cover + Notes