@@ -28,6 +28,7 @@ UbuntuShape {
28 property var actions
28 property var actions
29 property var notificationId
29 property var notificationId
30 property var type
30 property var type
31+ property var notification
32 signal actionInvoked(string buttonId)
33 signal actionInvoked(string buttonId)
@@ -46,7 +47,7 @@ UbuntuShape {
46 anchors.fill: contentColumn
47 anchors.fill: contentColumn
47 objectName: "interactiveArea"
48 objectName: "interactiveArea"
48 enabled: notification.type == Notification.Interactive
49 enabled: notification.type == Notification.Interactive
49− onClicked: notificationRenderer.model.get(notificationId).invokeAction(actionRepeater.model.actionId(0))
50+ onClicked: notification.notification.invokeAction(actionRepeater.model.actionId(0))
@@ -152,7 +153,7 @@ UbuntuShape {
152 width: (buttonRow.width - buttonRow.spacing) / 2
153 width: (buttonRow.width - buttonRow.spacing) / 2
153 height: units.gu(4)
154 height: units.gu(4)
154 text: label
155 text: label
155− onClicked: notificationRenderer.model.get(notificationId).invokeAction(id)
156+ onClicked: notification.notification.invokeAction(id)