diff options
Diffstat (limited to 'framework/qml/Outbox.qml')
-rw-r--r-- | framework/qml/Outbox.qml | 18 |
1 files changed, 5 insertions, 13 deletions
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 { | |||
30 | 30 | ||
31 | visible: outboxModel.count > 0 | 31 | visible: outboxModel.count > 0 |
32 | 32 | ||
33 | Kube.OutboxController { | ||
34 | id: outboxController | ||
35 | } | ||
36 | Kube.OutboxModel { | 33 | Kube.OutboxModel { |
37 | id: outboxModel | 34 | id: outboxModel |
38 | } | 35 | } |
@@ -134,10 +131,7 @@ Controls.ToolButton { | |||
134 | iconName: Kube.Icons.moveToTrash | 131 | iconName: Kube.Icons.moveToTrash |
135 | text: qsTr("Delete Mail") | 132 | text: qsTr("Delete Mail") |
136 | tooltip: text | 133 | tooltip: text |
137 | onClicked: { | 134 | onClicked: Kube.Fabric.postMessage(Kube.Messages.moveToTrash, {"mail": model.domainObject}) |
138 | outboxController.mail = model.domainObject | ||
139 | outboxController.moveToTrashAction.execute() | ||
140 | } | ||
141 | } | 135 | } |
142 | 136 | ||
143 | Controls.ToolButton { | 137 | Controls.ToolButton { |
@@ -145,8 +139,9 @@ Controls.ToolButton { | |||
145 | text: qsTr("Edit") | 139 | text: qsTr("Edit") |
146 | tooltip: text | 140 | tooltip: text |
147 | onClicked: { | 141 | onClicked: { |
148 | outboxController.mail = model.domainObject | 142 | Kube.Fabric.postMessage(Kube.Messages.moveToDrafts, {"mail": model.domainObject}) |
149 | outboxController.editAction.execute() | 143 | //TODO stage upon completion |
144 | //Kube.Fabric.postMessage(Kube.Messages.edit, {"mail": model.domainObject}) | ||
150 | } | 145 | } |
151 | } | 146 | } |
152 | } | 147 | } |
@@ -167,10 +162,7 @@ Controls.ToolButton { | |||
167 | visible: listView.count != 0 | 162 | visible: listView.count != 0 |
168 | 163 | ||
169 | text: qsTr("Send now") | 164 | text: qsTr("Send now") |
170 | enabled: outboxController.sendOutboxAction.enabled | 165 | onClicked: Kube.Fabric.postMessage(Kube.Messages.sendOutbox, {}) |
171 | onClicked: { | ||
172 | outboxController.sendOutboxAction.execute() | ||
173 | } | ||
174 | } | 166 | } |
175 | 167 | ||
176 | Kube.Label { | 168 | Kube.Label { |