on xenial help sign in
All test work again
afaf012Mirco Müller
Notifications/Notification.qml+7−2
@@ -41,15 +41,20 @@ UbuntuShape {
41
41
42 Repeater {
42 Repeater {
43 id: actionRepeater
43 id: actionRepeater
44+
44 model: notification.actions
45 model: notification.actions
46+
47+ delegate: Item {
48+ property string actionId: model.id
49+ }
45 }
50 }
46
51
47 anchors.fill: contentColumn
52 anchors.fill: contentColumn
48 objectName: "interactiveArea"
53 objectName: "interactiveArea"
49 enabled: notification.type == Notification.Interactive
54 enabled: notification.type == Notification.Interactive
50 onClicked: {
55 onClicked: {
51− notification.notification.invokeAction(actionRepeater.model.get(0).id)
56+ notification.notification.invokeAction(actionRepeater.itemAt(0).actionId)
52− actionInvoked(actionRepeater.model.get(0).id)
57+ actionInvoked(actionRepeater.itemAt(0).actionId)
53 }
58 }
54 }
59 }
55
60