From 288b4ea4ae38b3548f6ab8739a3ef303854886fb Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 12 Apr 2017 15:20:39 +0200 Subject: Move back to trash or drafts. The move back to drafts should also trigger an edit of the mail, but that's not implemented yet. --- framework/qml/Outbox.qml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'framework/qml') diff --git a/framework/qml/Outbox.qml b/framework/qml/Outbox.qml index e9e3c677..47deb1a5 100644 --- a/framework/qml/Outbox.qml +++ b/framework/qml/Outbox.qml @@ -130,6 +130,36 @@ Rectangle { } ] } + + Row { + anchors { + right: parent.right + rightMargin: Kube.Units.smallSpacing + verticalCenter: parent.verticalCenter + } + + spacing: Kube.Units.smallSpacing + + Controls.ToolButton { + iconName: Kube.Icons.moveToTrash + text: qsTr("Delete Mail") + tooltip: text + onClicked: { + outboxController.mail = model.domainObject + outboxController.moveToTrashAction.execute() + } + } + + Controls.ToolButton { + iconName: Kube.Icons.edit + text: qsTr("Edit") + tooltip: text + onClicked: { + outboxController.mail = model.domainObject + outboxController.editAction.execute() + } + } + } } clip: true @@ -147,6 +177,7 @@ Rectangle { visible: listView.count != 0 text: qsTr("Send now") + enabled: outboxController.sendOutboxAction.enabled onClicked: { outboxController.sendOutboxAction.execute() } -- cgit v1.2.3