@@ -404,21 +404,27 @@ Item {
404 spacing: units.gu(2)
404 spacing: units.gu(2)
405 layoutDirection: Qt.RightToLeft
405 layoutDirection: Qt.RightToLeft
407− SwipeToAct {
407+ Loader {
408+ id: notifySwipeButtonLoader
408− id: notifySwipeButton
411+ id: notifySwipeButton
409− objectName: "notify_swipe_button"
414+ objectName: "notify_swipe_button"
410− visible: notification.hints["x-canonical-snap-decisions-swipe"] === "true"
415+ width: buttonRow.width
411− leftIconName: "call-end"
416+ leftIconName: "call-end"
412− rightIconName: "call-start"
417+ rightIconName: "call-start"
413− width: buttonRow.width
415− onLeftTriggered: {
418+ onLeftTriggered: {
416− notification.notification.invokeAction(notification.actions.data(0, ActionModel.RoleActionId))
419+ notification.notification.invokeAction(notification.actions.data(0, ActionModel.RoleActionId))
419− onRightTriggered: {
422+ onRightTriggered: {
420− notification.notification.invokeAction(notification.actions.data(1, ActionModel.RoleActionId))
423+ notification.notification.invokeAction(notification.actions.data(1, ActionModel.RoleActionId))
427+ sourceComponent: notification.hints["x-canonical-snap-decisions-swipe"] === "true" ? notifySwipeButton : undefined
424 Repeater {
430 Repeater {