From 819c6f545087f6d636a3db5093a285401756036d Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 21 Dec 2017 11:25:09 +0100 Subject: A separate accounts module that listens for the account selection, and requests a login if necessary. --- framework/qml/EditAccount.qml | 2 +- framework/qml/InlineAccountSwitcher.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/qml') 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 { text: qsTr("Change Password") onClicked: { Kube.Fabric.postMessage(Kube.Messages.componentDone, {}) - Kube.Fabric.postMessage(Kube.Messages.requestLogin, {}) + Kube.Fabric.postMessage(Kube.Messages.requestLogin, {"accountId": loader.item.accountIdentifier}) } } } 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 { id: root property string currentAccount onCurrentAccountChanged: { - Kube.Fabric.postMessage(Kube.Messages.accountSelection, {"account": currentAccount}); + Kube.Fabric.postMessage(Kube.Messages.accountSelection, {accountId: currentAccount}); } ColumnLayout { -- cgit v1.2.3