summaryrefslogtreecommitdiffstats
path: root/framework/qml/EditAccount.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-08 11:54:45 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-08 11:54:45 +0200
commit6c7e79f7270500d00c526692c32cfc106a2feb07 (patch)
tree25de8ffc4de9a091c39449793823926c55e8a5bd /framework/qml/EditAccount.qml
parent2adb0ca74ac2a3f993824ea86e9a3233dcacb9e5 (diff)
downloadkube-6c7e79f7270500d00c526692c32cfc106a2feb07.tar.gz
kube-6c7e79f7270500d00c526692c32cfc106a2feb07.zip
Some basic input field validation.
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 }