From b3223155b178427354b44f05167d0afba0926cbd Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 24 Apr 2017 21:51:24 +0200 Subject: Another bunch of controllers gone --- framework/qml/Outbox.qml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'framework/qml/Outbox.qml') diff --git a/framework/qml/Outbox.qml b/framework/qml/Outbox.qml index fc960667..46368294 100644 --- a/framework/qml/Outbox.qml +++ b/framework/qml/Outbox.qml @@ -30,9 +30,6 @@ Controls.ToolButton { visible: outboxModel.count > 0 - Kube.OutboxController { - id: outboxController - } Kube.OutboxModel { id: outboxModel } @@ -134,10 +131,7 @@ Controls.ToolButton { iconName: Kube.Icons.moveToTrash text: qsTr("Delete Mail") tooltip: text - onClicked: { - outboxController.mail = model.domainObject - outboxController.moveToTrashAction.execute() - } + onClicked: Kube.Fabric.postMessage(Kube.Messages.moveToTrash, {"mail": model.domainObject}) } Controls.ToolButton { @@ -145,8 +139,9 @@ Controls.ToolButton { text: qsTr("Edit") tooltip: text onClicked: { - outboxController.mail = model.domainObject - outboxController.editAction.execute() + Kube.Fabric.postMessage(Kube.Messages.moveToDrafts, {"mail": model.domainObject}) + //TODO stage upon completion + //Kube.Fabric.postMessage(Kube.Messages.edit, {"mail": model.domainObject}) } } } @@ -167,10 +162,7 @@ Controls.ToolButton { visible: listView.count != 0 text: qsTr("Send now") - enabled: outboxController.sendOutboxAction.enabled - onClicked: { - outboxController.sendOutboxAction.execute() - } + onClicked: Kube.Fabric.postMessage(Kube.Messages.sendOutbox, {}) } Kube.Label { -- cgit v1.2.3