@@ -39,6 +39,8 @@ Item {
39 property bool fullscreen: false
39 property bool fullscreen: false
40 property int maxHeight
40 property int maxHeight
41 property int margins
41 property int margins
42+ property string acceptActionId
42 property Gradient greenGradient : Gradient {
44 property Gradient greenGradient : Gradient {
43 GradientStop { position: 0.0; color: "#3fb24f" }
45 GradientStop { position: 0.0; color: "#3fb24f" }
44 GradientStop { position: 1.0; color: "#3fb24f" }
46 GradientStop { position: 1.0; color: "#3fb24f" }
@@ -141,6 +143,12 @@ Item {
141 opacity: parent.opacity
143 opacity: parent.opacity
149+ notification.notification.invokeAction(notification.acceptActionId)
145 id: contents
153 id: contents
146 anchors.fill: fullscreen ? nonShapedBack : shapedBack
154 anchors.fill: fullscreen ? nonShapedBack : shapedBack
@@ -344,7 +352,11 @@ Item {
344 objectName: "button" + index
352 objectName: "button" + index
345 width: buttonRow.width / 2 - spacing
353 width: buttonRow.width / 2 - spacing
346 text: loader.actionLabel
354 text: loader.actionLabel
347− property string actionId: loader.actionId
355+ Component.onCompleted: {
357+ notification.acceptActionId = loader.actionId
348 gradient: notification.hints["x-canonical-private-button-tint"] == "true" && index == 0 ? greenGradient : darkgreyGradient
360 gradient: notification.hints["x-canonical-private-button-tint"] == "true" && index == 0 ? greenGradient : darkgreyGradient
349 onClicked: notification.notification.invokeAction(loader.actionId)
361 onClicked: notification.notification.invokeAction(loader.actionId)