diff options
Diffstat (limited to 'components/package/contents')
-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 { |