diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-08 11:54:45 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-08 11:54:45 +0200 |
commit | 6c7e79f7270500d00c526692c32cfc106a2feb07 (patch) | |
tree | 25de8ffc4de9a091c39449793823926c55e8a5bd /components/accounts/contents/ui/AccountWizardPage.qml | |
parent | 2adb0ca74ac2a3f993824ea86e9a3233dcacb9e5 (diff) | |
download | kube-6c7e79f7270500d00c526692c32cfc106a2feb07.tar.gz kube-6c7e79f7270500d00c526692c32cfc106a2feb07.zip |
Some basic input field validation.
Diffstat (limited to 'components/accounts/contents/ui/AccountWizardPage.qml')
-rw-r--r-- | components/accounts/contents/ui/AccountWizardPage.qml | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/components/accounts/contents/ui/AccountWizardPage.qml b/components/accounts/contents/ui/AccountWizardPage.qml index 6c9befea..b0b33049 100644 --- a/components/accounts/contents/ui/AccountWizardPage.qml +++ b/components/accounts/contents/ui/AccountWizardPage.qml | |||
@@ -135,11 +135,13 @@ Item { | |||
135 | 135 | ||
136 | text: qsTr("Save") | 136 | text: qsTr("Save") |
137 | onClicked: { | 137 | onClicked: { |
138 | loader.item.save() | 138 | if (loader.item.valid) { |
139 | 139 | loader.item.save() | |
140 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": loader.item.accountIdentifier}); | 140 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": loader.item.accountIdentifier}); |
141 | 141 | root.done() | |
142 | root.done() | 142 | } else { |
143 | console.warn("Invalid settings."); | ||
144 | } | ||
143 | } | 145 | } |
144 | } | 146 | } |
145 | } | 147 | } |