@@ -55,21 +55,21 @@ StyledItem {
55 name: "Ubuntu.Components.Themes.Ambiance"
55 name: "Ubuntu.Components.Themes.Ambiance"
58− state: {
58+ readonly property bool expanded: {
59− var result = "";
59+ var result = false;
61 if (type === Notification.SnapDecision) {
61 if (type === Notification.SnapDecision) {
62 if (ListView.view.currentIndex === index) {
62 if (ListView.view.currentIndex === index) {
63− result = "expanded";
63+ result = true;
65 if (ListView.view.count > 2) {
65 if (ListView.view.count > 2) {
66 if (ListView.view.currentIndex === -1 && index == 1) {
66 if (ListView.view.currentIndex === -1 && index == 1) {
67− result = "expanded";
67+ result = true;
69− result = "contracted";
69+ result = false;
72− result = "expanded";
72+ result = true;
@@ -325,12 +325,12 @@ StyledItem {
327 ListItem.ThinDivider {
327 ListItem.ThinDivider {
328− visible: type === Notification.SnapDecision && notification.state !== "contracted"
328+ visible: type === Notification.SnapDecision && notification.expanded
332 source: "arrow-down.png"
332 source: "arrow-down.png"
333− visible: type === Notification.SnapDecision && notification.state === "contracted"
333+ visible: type === Notification.SnapDecision && !notification.expanded
334 width: units.gu(2)
334 width: units.gu(2)
335 height: units.gu(0.6)
335 height: units.gu(0.6)
336 anchors.horizontalCenter: parent.horizontalCenter
336 anchors.horizontalCenter: parent.horizontalCenter
@@ -428,7 +428,7 @@ StyledItem {
429 spacing: notification.margins
429 spacing: notification.margins
431− visible: notification.type === Notification.SnapDecision && oneOverTwoRepeaterTop.count === 3 && notification.state === "expanded"
431+ visible: notification.type === Notification.SnapDecision && oneOverTwoRepeaterTop.count === 3 && notification.expanded
433 Repeater {
433 Repeater {
434 id: oneOverTwoRepeaterTop
434 id: oneOverTwoRepeaterTop
@@ -497,7 +497,7 @@ StyledItem {
497 left: parent.left
497 left: parent.left
498 right: parent.right
498 right: parent.right
500− visible: notification.type === Notification.SnapDecision && actionRepeater.count > 0 && !oneOverTwoCase.visible && notification.state === "expanded"
500+ visible: notification.type === Notification.SnapDecision && actionRepeater.count > 0 && !oneOverTwoCase.visible && notification.expanded
501 spacing: notification.margins
501 spacing: notification.margins
502 layoutDirection: Qt.RightToLeft
502 layoutDirection: Qt.RightToLeft
@@ -567,7 +567,7 @@ StyledItem {
567 right: parent.right
567 right: parent.right
570− visible: notification.type === Notification.SnapDecision && actionRepeater.count > 3 && !oneOverTwoCase.visible && notification.state === "expanded"
570+ visible: notification.type === Notification.SnapDecision && actionRepeater.count > 3 && !oneOverTwoCase.visible && notification.expanded
571 model: notification.actions
571 model: notification.actions
572 expanded: false
572 expanded: false
573 startIndex: 2
573 startIndex: 2