summaryrefslogtreecommitdiffstats
path: root/framework/qml
diff options
context:
space:
mode:
Diffstat (limited to 'framework/qml')
-rw-r--r--framework/qml/Icons.qml1
-rw-r--r--framework/qml/MailListView.qml4
-rw-r--r--framework/qml/Messages.qml2
3 files changed, 4 insertions, 3 deletions
diff --git a/framework/qml/Icons.qml b/framework/qml/Icons.qml
index 79a52046..a627fab1 100644
--- a/framework/qml/Icons.qml
+++ b/framework/qml/Icons.qml
@@ -36,6 +36,7 @@ Item {
36 property string markAsRead: "kuberead" 36 property string markAsRead: "kuberead"
37 property string markAsUnread: "kubeunread" 37 property string markAsUnread: "kubeunread"
38 property string markImportant: "kubeimportant" 38 property string markImportant: "kubeimportant"
39 property string markUnimportant: "kubeunimportant"
39 property string undo: "edit-undo-inverted" 40 property string undo: "edit-undo-inverted"
40 property string moveToTrash: "kubetrash" 41 property string moveToTrash: "kubetrash"
41 property string edit: "document-edit" 42 property string edit: "document-edit"
diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml
index 46d3146a..d82571ec 100644
--- a/framework/qml/MailListView.qml
+++ b/framework/qml/MailListView.qml
@@ -295,9 +295,9 @@ FocusScope {
295 295
296 Kube.IconButton { 296 Kube.IconButton {
297 id: importantButton 297 id: importantButton
298 iconName: Kube.Icons.markImportant 298 iconName: model.important ? Kube.Icons.markImportant : Kube.Icons.markUnimportant
299 visible: !!model.mail 299 visible: !!model.mail
300 onClicked: Kube.Fabric.postMessage(Kube.Messages.toggleImportant, {"mail": model.mail, "important": model.important}) 300 onClicked: Kube.Fabric.postMessage(Kube.Messages.setImportant, {"mail": model.mail, "important": !model.important})
301 activeFocusOnTab: false 301 activeFocusOnTab: false
302 } 302 }
303 303
diff --git a/framework/qml/Messages.qml b/framework/qml/Messages.qml
index f357b78b..d9734a0a 100644
--- a/framework/qml/Messages.qml
+++ b/framework/qml/Messages.qml
@@ -31,7 +31,7 @@ Item {
31 property string restoreFromTrash: "restoreFromTrash" 31 property string restoreFromTrash: "restoreFromTrash"
32 property string markAsRead: "markAsRead" 32 property string markAsRead: "markAsRead"
33 property string markAsUnread: "markAsUnread" 33 property string markAsUnread: "markAsUnread"
34 property string toggleImportant: "toggleImportant" 34 property string setImportant: "setImportant"
35 property string moveToFolder: "moveToFolder" 35 property string moveToFolder: "moveToFolder"
36 property string moveToDrafts: "moveToDrafts" 36 property string moveToDrafts: "moveToDrafts"
37 property string unlockKeyring: "unlockKeyring" 37 property string unlockKeyring: "unlockKeyring"