diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-21 09:33:18 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-21 09:33:18 +0200 |
commit | 390fe520daaa7eef2cd1aa9d8149c65dfd39ddb7 (patch) | |
tree | 4f0dbc5f1501fe246eb04e114dd08bf40fd4350e /components/accounts | |
parent | c52c1fd2e9f6029c6d6ef525e28bdfa6f304d6e0 (diff) | |
download | kube-390fe520daaa7eef2cd1aa9d8149c65dfd39ddb7.tar.gz kube-390fe520daaa7eef2cd1aa9d8149c65dfd39ddb7.zip |
Immediately trigger a sync when creating an account
... and return to the mailview
Diffstat (limited to 'components/accounts')
-rw-r--r-- | components/accounts/contents/ui/AccountWizard.qml | 4 | ||||
-rw-r--r-- | components/accounts/contents/ui/AccountWizardPage.qml | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/components/accounts/contents/ui/AccountWizard.qml b/components/accounts/contents/ui/AccountWizard.qml index eff9fbb7..c5ec4ba3 100644 --- a/components/accounts/contents/ui/AccountWizard.qml +++ b/components/accounts/contents/ui/AccountWizard.qml | |||
@@ -73,6 +73,10 @@ Kube.Popup { | |||
73 | Component { | 73 | Component { |
74 | id: wizardPage | 74 | id: wizardPage |
75 | AccountWizardPage { | 75 | AccountWizardPage { |
76 | onDone: { | ||
77 | popup.close() | ||
78 | Kube.Fabric.postMessage(Kube.Messages.componentDone, {}) | ||
79 | } | ||
76 | } | 80 | } |
77 | } | 81 | } |
78 | } | 82 | } |
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 | |||
28 | Item { | 28 | Item { |
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 | } |