diff options
-rw-r--r-- | components/accounts/contents/ui/AccountWizard.qml | 4 | ||||
-rw-r--r-- | components/accounts/contents/ui/AccountWizardPage.qml | 8 | ||||
-rw-r--r-- | components/kube/contents/ui/Kube.qml | 6 |
3 files changed, 12 insertions, 6 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 | } |
diff --git a/components/kube/contents/ui/Kube.qml b/components/kube/contents/ui/Kube.qml index 11c63a8a..c6fbffb9 100644 --- a/components/kube/contents/ui/Kube.qml +++ b/components/kube/contents/ui/Kube.qml | |||
@@ -171,7 +171,7 @@ Controls2.ApplicationWindow { | |||
171 | 171 | ||
172 | Kube.Listener { | 172 | Kube.Listener { |
173 | filter: Kube.Messages.componentDone | 173 | filter: Kube.Messages.componentDone |
174 | onMessageReceived: kubeViews.pop({immediate: true}) | 174 | onMessageReceived: kubeViews.pop(Controls2.StackView.Immediate) |
175 | } | 175 | } |
176 | 176 | ||
177 | //TODO replacing here while a composer is open is destructive | 177 | //TODO replacing here while a composer is open is destructive |
@@ -186,9 +186,7 @@ Controls2.ApplicationWindow { | |||
186 | } | 186 | } |
187 | } | 187 | } |
188 | function setAccountsView() { | 188 | function setAccountsView() { |
189 | if (currentItem != accountsView) { | 189 | kubeViews.push(accountsView, {}, Controls2.StackView.Immediate) |
190 | kubeViews.replace(null, accountsView, Controls2.StackView.Immediate) | ||
191 | } | ||
192 | } | 190 | } |
193 | function setLogView() { | 191 | function setLogView() { |
194 | if (currentItem != logView) { | 192 | if (currentItem != logView) { |