summaryrefslogtreecommitdiffstats
path: root/framework/qml/EditAccount.qml
diff options
context:
space:
mode:
Diffstat (limited to 'framework/qml/EditAccount.qml')
-rw-r--r--framework/qml/EditAccount.qml10
1 files changed, 7 insertions, 3 deletions
diff --git a/framework/qml/EditAccount.qml b/framework/qml/EditAccount.qml
index fb21f655..8600868f 100644
--- a/framework/qml/EditAccount.qml
+++ b/framework/qml/EditAccount.qml
@@ -125,9 +125,13 @@ Item {
125 anchors.right: parent.right 125 anchors.right: parent.right
126 text: qsTr("Save") 126 text: qsTr("Save")
127 onClicked: { 127 onClicked: {
128 loader.item.save() 128 if(loader.item.valid) {
129 Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": loader.item.accountIdentifier}); 129 loader.item.save()
130 Kube.Fabric.postMessage(Kube.Messages.componentDone, {}) 130 Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": loader.item.accountIdentifier});
131 Kube.Fabric.postMessage(Kube.Messages.componentDone, {})
132 } else {
133 console.warn("Invalid settings.");
134 }
131 } 135 }
132 } 136 }
133 } 137 }