summaryrefslogtreecommitdiffstats
path: root/framework/qml/ConversationView.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-24 17:51:18 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-24 17:51:18 +0200
commit47e0f0c14b4bbcc64cb8bf562c566d29313db7ad (patch)
treec50362e5c6f68a8994bcc7177c7d401b48179371 /framework/qml/ConversationView.qml
parentb8962ee2d35772ab4f2bed1c415a386207067157 (diff)
downloadkube-47e0f0c14b4bbcc64cb8bf562c566d29313db7ad.tar.gz
kube-47e0f0c14b4bbcc64cb8bf562c566d29313db7ad.zip
Ported more actions to the fabric
Diffstat (limited to 'framework/qml/ConversationView.qml')
-rw-r--r--framework/qml/ConversationView.qml24
1 files changed, 2 insertions, 22 deletions
diff --git a/framework/qml/ConversationView.qml b/framework/qml/ConversationView.qml
index 85712a5a..d7d33c78 100644
--- a/framework/qml/ConversationView.qml
+++ b/framework/qml/ConversationView.qml
@@ -548,32 +548,12 @@ Rectangle {
548 rightMargin: Kube.Units.largeSpacing 548 rightMargin: Kube.Units.largeSpacing
549 } 549 }
550 550
551 Kube.Context {
552 id: mailcontext
553 property variant mail
554 property bool isDraft
555 mail: model.mail
556 isDraft: model.draft
557 }
558
559 Kube.Action {
560 id: replyAction
561 actionId: "org.kde.kube.actions.reply"
562 context: maillistcontext
563 }
564
565 Kube.Action {
566 id: editAction
567 actionId: "org.kde.kube.actions.edit"
568 context: maillistcontext
569 }
570
571 iconName: model.draft ? Kube.Icons.edit : Kube.Icons.replyToSender 551 iconName: model.draft ? Kube.Icons.edit : Kube.Icons.replyToSender
572 onClicked: { 552 onClicked: {
573 if (model.draft) { 553 if (model.draft) {
574 editAction.execute() 554 Kube.Fabric.postMessage(Kube.Messages.edit, {"mail": model.mail, "isDraft": model.draft})
575 } else { 555 } else {
576 replyAction.execute() 556 Kube.Fabric.postMessage(Kube.Messages.reply, {"mail": model.mail, "isDraft": model.draft})
577 } 557 }
578 } 558 }
579 } 559 }