From ad10788ac3a60bffe053cec172e0e750f393905a Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 25 Jan 2018 12:06:42 +0100 Subject: Close the popup after pressing send and make sure the relevant message is available --- framework/qml/Messages.qml | 1 + framework/qml/Outbox.qml | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'framework/qml') diff --git a/framework/qml/Messages.qml b/framework/qml/Messages.qml index 597afc0c..18db51ff 100644 --- a/framework/qml/Messages.qml +++ b/framework/qml/Messages.qml @@ -46,6 +46,7 @@ Item { property string reply: "reply" property string edit: "edit" property string compose: "compose" + property string sendOutbox: "sendOutbox" property string componentDone: "done" } diff --git a/framework/qml/Outbox.qml b/framework/qml/Outbox.qml index a9a1a1d6..215fc3a2 100644 --- a/framework/qml/Outbox.qml +++ b/framework/qml/Outbox.qml @@ -158,7 +158,10 @@ Kube.IconButton { visible: listView.count != 0 text: qsTr("Send now") - onClicked: Kube.Fabric.postMessage(Kube.Messages.sendOutbox, {}) + onClicked: { + Kube.Fabric.postMessage(Kube.Messages.sendOutbox, {}) + dialog.close() + } } Kube.Label { -- cgit v1.2.3