diff --git a/qml/pages/EditPage.qml b/qml/pages/EditPage.qml index 11d374e..057ef75 100644 --- a/qml/pages/EditPage.qml +++ b/qml/pages/EditPage.qml @@ -14,7 +14,6 @@ Dialog { property string etag property bool error property string errorMessage - property string date onAccepted: { notesApi.updateNote(id, { 'category': categoryField.text, 'content': contentArea.text, 'favorite': favoriteButton.selected } ) @@ -51,7 +50,7 @@ Dialog { DialogHeader { id: dialogHeader - title: title + title: editDialog.title } Column { diff --git a/qml/pages/NotePage.qml b/qml/pages/NotePage.qml index 103b0cd..7b73907 100644 --- a/qml/pages/NotePage.qml +++ b/qml/pages/NotePage.qml @@ -17,7 +17,6 @@ Dialog { property string etag property bool error property string errorMessage - property string date property var showdown: ShowDown.showdown property var converter: new showdown.Converter( @@ -42,8 +41,8 @@ Dialog { favorite: favorite, etag: etag, error: error, - errorMessage: errorMessage, - date: date } ) + errorMessage: errorMessage + } ) onAccepted: { //acceptDestinationInstance.note = note acceptDestinationInstance.reloadContent() @@ -131,7 +130,7 @@ Dialog { DialogHeader { id: dialogHeader - title: title + title: noteDialog.title acceptText: qsTr("Edit") cancelText: qsTr("Notes") } @@ -270,8 +269,7 @@ Dialog { DetailItem { id: modifiedDetail label: qsTr("Modified") - property int modified: modified - value: new Date(modified * 1000).toLocaleString(Qt.locale(), Locale.ShortFormat) + value: new Date(noteDialog.modified * 1000).toLocaleString(Qt.locale(), Locale.ShortFormat) } } diff --git a/qml/pages/NotesPage.qml b/qml/pages/NotesPage.qml index c5261d7..19e626f 100644 --- a/qml/pages/NotesPage.qml +++ b/qml/pages/NotesPage.qml @@ -129,7 +129,6 @@ Page { etag: etag, error: error, errorMessage: errorMessage - //date: date }) onPressAndHold: menu.open(note) diff --git a/translations/harbour-nextcloudnotes.ts b/translations/harbour-nextcloudnotes.ts index 6a8ccaf..8ed1254 100644 --- a/translations/harbour-nextcloudnotes.ts +++ b/translations/harbour-nextcloudnotes.ts @@ -209,52 +209,52 @@ NotePage - + Delete - + Reload - + Updating... - + Last update - + never - + Edit - + Notes - + No category - + Category - + Modified @@ -297,62 +297,62 @@ - + Modified - + Delete - + Deleting note - + Loading notes... - + No account yet - + Got to the settings to add an account - + No notes yet - + Pull down to add a note - + No result - + Try another query - + An error occurred - + Open the settings to configure your Nextcloud accounts