From 4b23da770d606e94ef07a95f726af036ac96a94e Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Sat, 18 Jun 2016 16:25:30 +0200 Subject: load account config UI in account config dialog --- components/package/contents/ui/AccountSwitcher.qml | 20 ++++++++++++-------- components/package/contents/ui/EditAccountDialog.qml | 7 ++++++- 2 files changed, 18 insertions(+), 9 deletions(-) (limited to 'components/package') diff --git a/components/package/contents/ui/AccountSwitcher.qml b/components/package/contents/ui/AccountSwitcher.qml index da878acf..6a9d2deb 100644 --- a/components/package/contents/ui/AccountSwitcher.qml +++ b/components/package/contents/ui/AccountSwitcher.qml @@ -165,16 +165,20 @@ Button { onClicked: { editAccountComponent.createObject(app) } - } - } - } - Component { - id: editAccountComponent + Component { + id: editAccountComponent + + KubeComponents.EditAccountDialog { + id: editAccount - KubeComponents.EditAccountDialog { - id: editAccount - anchors.fill: parent + anchors.fill: parent + + //accountId: accountFactory.accountId + uiSource: accountFactory.uiPath + } + } + } } } } diff --git a/components/package/contents/ui/EditAccountDialog.qml b/components/package/contents/ui/EditAccountDialog.qml index 2fac4227..24f8b5e2 100644 --- a/components/package/contents/ui/EditAccountDialog.qml +++ b/components/package/contents/ui/EditAccountDialog.qml @@ -28,8 +28,9 @@ import org.kube.framework.theme 1.0 Rectangle { id: root - color: ColorPalette.border + property variant uiSource + color: ColorPalette.border opacity: 0.9 MouseArea { @@ -51,5 +52,9 @@ Rectangle { MouseArea { anchors.fill: parent } + + Loader { + source: uiSource + } } } -- cgit v1.2.3