summaryrefslogtreecommitdiffstats
path: root/framework/qml/Outbox.qml
diff options
context:
space:
mode:
Diffstat (limited to 'framework/qml/Outbox.qml')
-rw-r--r--framework/qml/Outbox.qml31
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 }