@@ -406,25 +406,21 @@ Item {
408 id: notifySwipeButtonLoader
408 id: notifySwipeButtonLoader
409+ active: notification.hints["x-canonical-snap-decisions-swipe"] === "true"
411+ sourceComponent: SwipeToAct {
412+ objectName: "notify_swipe_button"
413+ width: buttonRow.width
414+ leftIconName: "call-end"
415+ rightIconName: "call-start"
417+ notification.notification.invokeAction(notification.actions.data(0, ActionModel.RoleActionId))
411− id: notifySwipeButton
414− objectName: "notify_swipe_button"
415− width: buttonRow.width
416− leftIconName: "call-end"
417− rightIconName: "call-start"
419− notification.notification.invokeAction(notification.actions.data(0, ActionModel.RoleActionId))
422− onRightTriggered: {
420+ onRightTriggered: {
423− notification.notification.invokeAction(notification.actions.data(1, ActionModel.RoleActionId))
421+ notification.notification.invokeAction(notification.actions.data(1, ActionModel.RoleActionId))
427− sourceComponent: notification.hints["x-canonical-snap-decisions-swipe"] === "true" ? notifySwipeButton : undefined
430 Repeater {
426 Repeater {
@@ -435,6 +431,7 @@ Item {
436 property string actionId: id
432 property string actionId: id
437 property string actionLabel: label
433 property string actionLabel: label
434+ active: !notifySwipeButtonLoader.active
439 Component {
436 Component {
440 id: actionButton
437 id: actionButton