on xenial help sign in
as review
f860d9eAndrea Cimitan
qml/Dash/CardTool.qml+4−6
@@ -185,15 +185,13 @@ Item {
185 Item {
185 Item {
186 id: socialActionsModel
186 id: socialActionsModel
187 property var model: []
187 property var model: []
188− readonly property bool hasActions: {
188+ readonly property bool hasActions: components["social-actions"] != undefined
189− var actions = components["social-actions"];
190− var hasActionsFlag = (actions != undefined);
191
189
190+ onHasActionsChanged: {
192 model = []
191 model = []
193− if (hasActionsFlag) {
192+ if (hasActions) {
194− model.push( {"id":"text", "icon":"image://theme/ok" } );
193+ model.push( {"id":"text", "icon":"image://theme/ok" } );
195 }
194 }
196− return hasActionsFlag
197 }
195 }
198 }
196 }
199
197