summaryrefslogtreecommitdiffstats
path: root/components/accounts/contents/ui/AccountWizardPage.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-06-21 09:33:18 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-06-21 09:33:18 +0200
commit390fe520daaa7eef2cd1aa9d8149c65dfd39ddb7 (patch)
tree4f0dbc5f1501fe246eb04e114dd08bf40fd4350e /components/accounts/contents/ui/AccountWizardPage.qml
parentc52c1fd2e9f6029c6d6ef525e28bdfa6f304d6e0 (diff)
downloadkube-390fe520daaa7eef2cd1aa9d8149c65dfd39ddb7.tar.gz
kube-390fe520daaa7eef2cd1aa9d8149c65dfd39ddb7.zip
Immediately trigger a sync when creating an account
... and return to the mailview
Diffstat (limited to 'components/accounts/contents/ui/AccountWizardPage.qml')
-rw-r--r--components/accounts/contents/ui/AccountWizardPage.qml8
1 files changed, 6 insertions, 2 deletions
diff --git a/components/accounts/contents/ui/AccountWizardPage.qml b/components/accounts/contents/ui/AccountWizardPage.qml
index 07fbc73f..e77f0cd9 100644
--- a/components/accounts/contents/ui/AccountWizardPage.qml
+++ b/components/accounts/contents/ui/AccountWizardPage.qml
@@ -28,6 +28,7 @@ import org.kube.framework 1.0 as Kube
28Item { 28Item {
29 id: root 29 id: root
30 property string accountType 30 property string accountType
31 signal done()
31 32
32 Kube.AccountFactory { 33 Kube.AccountFactory {
33 id: accountFactory 34 id: accountFactory
@@ -118,7 +119,7 @@ Item {
118 119
119 text: "Discard" 120 text: "Discard"
120 onClicked: { 121 onClicked: {
121 popup.close() 122 root.done()
122 } 123 }
123 } 124 }
124 125
@@ -131,7 +132,10 @@ Item {
131 text: "Save" 132 text: "Save"
132 onClicked: { 133 onClicked: {
133 loader.item.save() 134 loader.item.save()
134 popup.close() 135
136 Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": loader.item.accountIdentifier});
137
138 root.done()
135 } 139 }
136 } 140 }
137 } 141 }