diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-04-24 21:51:24 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-04-24 21:51:24 +0200 |
commit | b3223155b178427354b44f05167d0afba0926cbd (patch) | |
tree | 25021116a0f465a6973e36b668945080f3b9fc4b /framework/qml/Outbox.qml | |
parent | 4ba8c5b72fd7a3db6e593853c4669750dc6dd2a2 (diff) | |
download | kube-b3223155b178427354b44f05167d0afba0926cbd.tar.gz kube-b3223155b178427354b44f05167d0afba0926cbd.zip |
Another bunch of controllers gone
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 { |