diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-04-12 15:20:39 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-04-12 15:20:39 +0200 |
commit | 288b4ea4ae38b3548f6ab8739a3ef303854886fb (patch) | |
tree | 2bc6278f6448ec89f029871947ed09bdfe64ca4e /framework/qml | |
parent | b07fad009b2cdfdd802bc3461c1c884c15856548 (diff) | |
download | kube-288b4ea4ae38b3548f6ab8739a3ef303854886fb.tar.gz kube-288b4ea4ae38b3548f6ab8739a3ef303854886fb.zip |
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.
Diffstat (limited to 'framework/qml')
-rw-r--r-- | framework/qml/Outbox.qml | 31 |
1 files changed, 31 insertions, 0 deletions
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 { | |||
130 | } | 130 | } |
131 | ] | 131 | ] |
132 | } | 132 | } |
133 | |||
134 | Row { | ||
135 | anchors { | ||
136 | right: parent.right | ||
137 | rightMargin: Kube.Units.smallSpacing | ||
138 | verticalCenter: parent.verticalCenter | ||
139 | } | ||
140 | |||
141 | spacing: Kube.Units.smallSpacing | ||
142 | |||
143 | Controls.ToolButton { | ||
144 | iconName: Kube.Icons.moveToTrash | ||
145 | text: qsTr("Delete Mail") | ||
146 | tooltip: text | ||
147 | onClicked: { | ||
148 | outboxController.mail = model.domainObject | ||
149 | outboxController.moveToTrashAction.execute() | ||
150 | } | ||
151 | } | ||
152 | |||
153 | Controls.ToolButton { | ||
154 | iconName: Kube.Icons.edit | ||
155 | text: qsTr("Edit") | ||
156 | tooltip: text | ||
157 | onClicked: { | ||
158 | outboxController.mail = model.domainObject | ||
159 | outboxController.editAction.execute() | ||
160 | } | ||
161 | } | ||
162 | } | ||
133 | } | 163 | } |
134 | 164 | ||
135 | clip: true | 165 | clip: true |
@@ -147,6 +177,7 @@ Rectangle { | |||
147 | visible: listView.count != 0 | 177 | visible: listView.count != 0 |
148 | 178 | ||
149 | text: qsTr("Send now") | 179 | text: qsTr("Send now") |
180 | enabled: outboxController.sendOutboxAction.enabled | ||
150 | onClicked: { | 181 | onClicked: { |
151 | outboxController.sendOutboxAction.execute() | 182 | outboxController.sendOutboxAction.execute() |
152 | } | 183 | } |