diff --git a/qml/pages/DetailTask.qml b/qml/pages/DetailTask.qml index d575b35..a648c36 100644 --- a/qml/pages/DetailTask.qml +++ b/qml/pages/DetailTask.qml @@ -8,6 +8,7 @@ Dialog { property var taskData; property string description: getJsonField("description") property string project: getJsonField("project") + property variant tags: getJsonField("tags") property string due: getJsonField("due") property string wait: getJsonField("wait") @@ -43,6 +44,14 @@ Dialog { placeholderText: qsTr("Project") inputMethodHints: Qt.ImhNoAutoUppercase } + TextField { + id: tagsfield + width: parent.width + label: qsTr("Tags") + text: tags.toString() + placeholderText: qsTr("Tags") + inputMethodHints: Qt.ImhNoAutoUppercase + } Item { anchors.left: parent.left anchors.right: parent.right @@ -116,6 +125,7 @@ Dialog { if (typeof taskData == "undefined") { json["description"] = descriptionfield.text; json["project"] = projectfield.text !== "" ? projectfield.text : undefined + json["tags"] = tagsfield.text !== "" ? tagsfield.text : undefined json["due"] = due !== "" ? due : undefined json["wait"] = wait !== "" ? wait : undefined console.log(JSON.stringify(json)); @@ -125,6 +135,7 @@ Dialog { json = UT.copyItem(taskData.rawData); json["description"] = descriptionfield.text; json["project"] = projectfield.text !== "" ? projectfield.text : undefined + json["tags"] = tagsfield.text !== "" ? tagsfield.text : undefined json["due"] = due !== "" ? due : undefined json["wait"] = wait !== "" ? wait : undefined console.log(JSON.stringify(json)); diff --git a/translations/harbour-taskwarrior-de.ts b/translations/harbour-taskwarrior-de.ts index ec2beda..fd98aea 100644 --- a/translations/harbour-taskwarrior-de.ts +++ b/translations/harbour-taskwarrior-de.ts @@ -4,19 +4,25 @@ DetailTask - - + + Description - - + + Project - + + + Tags + + + + no due date set diff --git a/translations/harbour-taskwarrior.ts b/translations/harbour-taskwarrior.ts index ec2beda..fd98aea 100644 --- a/translations/harbour-taskwarrior.ts +++ b/translations/harbour-taskwarrior.ts @@ -4,19 +4,25 @@ DetailTask - - + + Description - - + + Project - + + + Tags + + + + no due date set