diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-02 10:27:44 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-02 10:28:07 +0100 |
commit | 7037e7270a2a06e726871d953061213b26d66ea7 (patch) | |
tree | 3c83724cb62c368477188b786d82437c3b73ce71 /components/package/contents/ui/SingleMailView.qml | |
parent | 1ef70a4c8c2bb9fd70d5bc73614b09177b6b970c (diff) | |
download | kube-7037e7270a2a06e726871d953061213b26d66ea7.tar.gz kube-7037e7270a2a06e726871d953061213b26d66ea7.zip |
Move to trash from mailview
Diffstat (limited to 'components/package/contents/ui/SingleMailView.qml')
-rw-r--r-- | components/package/contents/ui/SingleMailView.qml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/components/package/contents/ui/SingleMailView.qml b/components/package/contents/ui/SingleMailView.qml index 9b38b5be..5576391d 100644 --- a/components/package/contents/ui/SingleMailView.qml +++ b/components/package/contents/ui/SingleMailView.qml | |||
@@ -353,9 +353,24 @@ Item { | |||
353 | leftMargin: Kirigami.Units.gridUnit | 353 | leftMargin: Kirigami.Units.gridUnit |
354 | } | 354 | } |
355 | 355 | ||
356 | KubeFramework.MailController { | ||
357 | id: mailController | ||
358 | mail: model.mail | ||
359 | } | ||
360 | |||
356 | text: "Delete Mail" | 361 | text: "Delete Mail" |
357 | color: Kirigami.Theme.textColor | 362 | color: Kirigami.Theme.textColor |
358 | opacity: 0.5 | 363 | opacity: 0.5 |
364 | enabled: mailController.moveToTrashAction.enabled | ||
365 | MouseArea { | ||
366 | anchors.fill: parent | ||
367 | enabled: mailController.moveToTrashAction.enabled | ||
368 | onClicked: { | ||
369 | if (mailController.moveToTrashAction.enabled) { | ||
370 | mailController.moveToTrashAction.execute(); | ||
371 | } | ||
372 | } | ||
373 | } | ||
359 | } | 374 | } |
360 | 375 | ||
361 | Controls1.ToolButton { | 376 | Controls1.ToolButton { |