summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-12-21 11:25:09 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-12-21 13:49:37 +0100
commit819c6f545087f6d636a3db5093a285401756036d (patch)
treeded6597e5dbd27f89664327247b6280988d67029 /framework
parent2adc4f79f0b63ec02914ae8972e4ab99bfd9779a (diff)
downloadkube-819c6f545087f6d636a3db5093a285401756036d.tar.gz
kube-819c6f545087f6d636a3db5093a285401756036d.zip
A separate accounts module that listens for the account selection, and
requests a login if necessary.
Diffstat (limited to 'framework')
-rw-r--r--framework/qml/EditAccount.qml2
-rw-r--r--framework/qml/InlineAccountSwitcher.qml2
2 files changed, 2 insertions, 2 deletions
diff --git a/framework/qml/EditAccount.qml b/framework/qml/EditAccount.qml
index 872d9d03..2c73617f 100644
--- a/framework/qml/EditAccount.qml
+++ b/framework/qml/EditAccount.qml
@@ -84,7 +84,7 @@ Item {
84 text: qsTr("Change Password") 84 text: qsTr("Change Password")
85 onClicked: { 85 onClicked: {
86 Kube.Fabric.postMessage(Kube.Messages.componentDone, {}) 86 Kube.Fabric.postMessage(Kube.Messages.componentDone, {})
87 Kube.Fabric.postMessage(Kube.Messages.requestLogin, {}) 87 Kube.Fabric.postMessage(Kube.Messages.requestLogin, {"accountId": loader.item.accountIdentifier})
88 } 88 }
89 } 89 }
90 } 90 }
diff --git a/framework/qml/InlineAccountSwitcher.qml b/framework/qml/InlineAccountSwitcher.qml
index de79bc09..746891f9 100644
--- a/framework/qml/InlineAccountSwitcher.qml
+++ b/framework/qml/InlineAccountSwitcher.qml
@@ -24,7 +24,7 @@ FocusScope {
24 id: root 24 id: root
25 property string currentAccount 25 property string currentAccount
26 onCurrentAccountChanged: { 26 onCurrentAccountChanged: {
27 Kube.Fabric.postMessage(Kube.Messages.accountSelection, {"account": currentAccount}); 27 Kube.Fabric.postMessage(Kube.Messages.accountSelection, {accountId: currentAccount});
28 } 28 }
29 29
30 ColumnLayout { 30 ColumnLayout {