summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2018-02-26 14:47:02 +0100
committerMichael Bohlender <michael.bohlender@kdemail.net>2018-02-26 14:47:02 +0100
commit0d13d2fe1097db160c8b31cb1137846a97e3b362 (patch)
tree860c374838d4baf9b517b249b59ab07089bf9c2b /framework
parent0b27ee6df7588a1a1a7c86a888498ffa50b0e115 (diff)
downloadkube-0d13d2fe1097db160c8b31cb1137846a97e3b362.tar.gz
kube-0d13d2fe1097db160c8b31cb1137846a97e3b362.zip
share instead of forward
Diffstat (limited to 'framework')
-rw-r--r--framework/qml/MailViewer.qml28
1 files changed, 14 insertions, 14 deletions
diff --git a/framework/qml/MailViewer.qml b/framework/qml/MailViewer.qml
index e37fb3f7..565adedd 100644
--- a/framework/qml/MailViewer.qml
+++ b/framework/qml/MailViewer.qml
@@ -378,34 +378,34 @@ Rectangle {
378 rightMargin: Kube.Units.largeSpacing 378 rightMargin: Kube.Units.largeSpacing
379 } 379 }
380 columns: 2 380 columns: 2
381 spacing: Kube.Units.smallSpacing
381 382
382 Kube.IconButton { 383 Kube.Button {
383 visible: !model.trash 384 visible: !model.trash && !model.draft
384 activeFocusOnTab: false 385 activeFocusOnTab: false
385 386
386 iconName: model.draft ? Kube.Icons.edit : Kube.Icons.replyToSender 387 text: "Share"
387 onClicked: { 388 onClicked: {
388 if (model.draft) { 389 Kube.Fabric.postMessage(Kube.Messages.forward, {"mail": model.mail})
389 Kube.Fabric.postMessage(Kube.Messages.edit, {"mail": model.mail})
390 } else {
391 Kube.Fabric.postMessage(Kube.Messages.reply, {"mail": model.mail})
392 }
393 } 390 }
394 } 391 }
395 392
396 Kube.IconButton { 393 Kube.Button {
397 visible: !model.trash && !model.draft 394 visible: !model.trash
398 activeFocusOnTab: false 395 activeFocusOnTab: false
399 396
400 iconName: Kube.Icons.forward 397 text: model.draft ? "Edit" : "Reply"
401 onClicked: { 398 onClicked: {
402 Kube.Fabric.postMessage(Kube.Messages.forward, {"mail": model.mail}) 399 if (model.draft) {
400 Kube.Fabric.postMessage(Kube.Messages.edit, {"mail": model.mail})
401 } else {
402 Kube.Fabric.postMessage(Kube.Messages.reply, {"mail": model.mail})
403 }
403 } 404 }
404 } 405 }
405
406 } 406 }
407
408 } 407 }
408
409 Rectangle { 409 Rectangle {
410 anchors.fill: parent 410 anchors.fill: parent
411 color: Kube.Colors.buttonColor 411 color: Kube.Colors.buttonColor