@@ -405,10 +405,26 @@ Item {
405 spacing: units.gu(2)
405 spacing: units.gu(2)
406 layoutDirection: Qt.RightToLeft
406 layoutDirection: Qt.RightToLeft
409+ objectName: "notify_swipe_button"
410+ visible: notification.hints["x-canonical-snap-decisions-swipe"] === "true"
411+ leftIconName: "call-end"
412+ rightIconName: "call-start"
413+ width: buttonRow.width
416+ notification.notification.invokeAction(notification.actions.data(0, ActionModel.RoleActionId))
420+ notification.notification.invokeAction(notification.actions.data(1, ActionModel.RoleActionId))
408 Repeater {
424 Repeater {
409 id: actionRepeater
425 id: actionRepeater
411 model: notification.actions
426 model: notification.actions
427+ visible: notification.hints["x-canonical-snap-decisions-swipe"] !== "true"
412 delegate: Loader {
428 delegate: Loader {
413 id: loader
429 id: loader
@@ -418,9 +434,9 @@ Item {
418 Component {
434 Component {
419 id: actionButton
435 id: actionButton
421− /*Button {
437+ Button {
422 objectName: "notify_button" + index
438 objectName: "notify_button" + index
423− width: buttonRow.width / 2 - spacing*2
439+ width: buttonRow.width / 2 - spacing * 2
424 text: loader.actionLabel
440 text: loader.actionLabel
426 var result = sdDarkGrey;
442 var result = sdDarkGrey;
@@ -433,25 +449,9 @@ Item {
433 return result;
449 return result;
435 onClicked: notification.notification.invokeAction(loader.actionId)
451 onClicked: notification.notification.invokeAction(loader.actionId)
439− objectName: "notify_button" + index
441− leftIconName: "call-end"
442− rightIconName: "call-start"
443− width: buttonRow.width
446− notification.notification.invokeAction(loader.actionId)
450− notification.notification.invokeAction(loader.actionId)
454− sourceComponent: (index == 0) ? actionButton : undefined
454+ sourceComponent: (index == 0 || index == 1) ? actionButton : undefined