@@ -24,9 +24,9 @@ import Unity.Indicators 0.1 as Indicators
24import "utils.js" as Utils
24import "utils.js" as Utils
26HeroMessage {
26HeroMessage {
27− id: __snapDecision
27+ id: snapDecision
29− expandedHeight: __buttons.y + __buttons.height + __quickreply.height + units.gu(2)
29+ expandedHeight: buttons.y + buttons.height + quickreply.height + units.gu(2)
30 heroMessageHeader.titleText.text: menu ? menu.label : ""
30 heroMessageHeader.titleText.text: menu ? menu.label : ""
31 heroMessageHeader.subtitleText.text: menu ? menu.extra.canonical_text : ""
31 heroMessageHeader.subtitleText.text: menu ? menu.extra.canonical_text : ""
32 heroMessageHeader.subtitleText.color: "#e8e1d0"
32 heroMessageHeader.subtitleText.color: "#e8e1d0"
@@ -34,7 +34,7 @@ HeroMessage {
34 heroMessageHeader.bodyText.color: "#8f8f88"
34 heroMessageHeader.bodyText.color: "#8f8f88"
37− id: __buttons
37+ id: buttons
39 anchors.left: parent.left
39 anchors.left: parent.left
40 anchors.leftMargin: units.gu(2)
40 anchors.leftMargin: units.gu(2)
@@ -54,16 +54,16 @@ HeroMessage {
54 width: (parent.width - units.gu(1)) / 2
54 width: (parent.width - units.gu(1)) / 2
56 onClicked: {
56 onClicked: {
57− if (__quickreply.state === "") {
57+ if (quickreply.state === "") {
58− __quickreply.state = "expanded";
58+ quickreply.state = "expanded";
60− __quickreply.state = "";
60+ quickreply.state = "";
65 ActionButton {
65 ActionButton {
66− actionGroup: __snapDecision.actionGroup
66+ actionGroup: snapDecision.actionGroup
67 action: actionsDescription[0].name
67 action: actionsDescription[0].name
69 text: actionsDescription ? actionsDescription[0].label : "Call back"
69 text: actionsDescription ? actionsDescription[0].label : "Call back"
@@ -76,10 +76,10 @@ HeroMessage {
77 states: State {
77 states: State {
78 name: "expanded"
78 name: "expanded"
79− when: __snapDecision.state === "expanded"
79+ when: snapDecision.state === "expanded"
81 PropertyChanges {
81 PropertyChanges {
82− target: __buttons
82+ target: buttons
83 opacity: 1.0
83 opacity: 1.0
@@ -93,15 +93,15 @@ HeroMessage {
95 QuickReply {
95 QuickReply {
96− id: __quickreply
96+ id: quickreply
98− actionGroup: __snapDecision.actionGroup
98+ actionGroup: snapDecision.actionGroup
99 action: actionsDescription[1].name
99 action: actionsDescription[1].name
101 messages: actionsDescription ? actionsDescription[1]["parameter-hint"] : ""
101 messages: actionsDescription ? actionsDescription[1]["parameter-hint"] : ""
102 buttonText: actionsDescription ? actionsDescription[1].label : "send"
102 buttonText: actionsDescription ? actionsDescription[1].label : "send"
103 anchors {
103 anchors {
104− top: __buttons.bottom
104+ top: buttons.bottom
105 topMargin: units.gu(2)
105 topMargin: units.gu(2)
106 left: parent.left
106 left: parent.left
107 right: parent.right
107 right: parent.right
@@ -114,13 +114,13 @@ HeroMessage {
114 name: "expanded"
114 name: "expanded"
116 PropertyChanges {
116 PropertyChanges {
117− target: __quickreply
117+ target: quickreply
118 height: expandedHeight
118 height: expandedHeight
119 opacity: 1.0
119 opacity: 1.0
122 PropertyChanges {
122 PropertyChanges {
123− target: __quickreply
123+ target: quickreply
124 enabled: true
124 enabled: true
@@ -136,7 +136,7 @@ HeroMessage {
137 onStateChanged: {
137 onStateChanged: {
138 if (state === "") {
138 if (state === "") {
139− __quickreply.state = "";
139+ quickreply.state = "";