diff options
Diffstat (limited to 'components/package/contents/ui/EditAccountDialog.qml')
-rw-r--r-- | components/package/contents/ui/EditAccountDialog.qml | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/components/package/contents/ui/EditAccountDialog.qml b/components/package/contents/ui/EditAccountDialog.qml index 19349f38..a7461640 100644 --- a/components/package/contents/ui/EditAccountDialog.qml +++ b/components/package/contents/ui/EditAccountDialog.qml | |||
@@ -21,28 +21,18 @@ import QtQuick.Layouts 1.1 | |||
21 | 21 | ||
22 | import org.kde.kirigami 1.0 as Kirigami | 22 | import org.kde.kirigami 1.0 as Kirigami |
23 | 23 | ||
24 | import org.kube.framework.settings 1.0 as KubeSettings | ||
25 | import org.kube.framework.domain 1.0 as KubeFramework | ||
26 | import org.kube.components 1.0 as KubeComponents | 24 | import org.kube.components 1.0 as KubeComponents |
27 | 25 | ||
28 | KubeComponents.OverlayDialog { | 26 | KubeComponents.OverlayDialog { |
29 | id: root | 27 | id: dialog |
30 | 28 | ||
31 | property variant uiSource | ||
32 | property variant accountId | 29 | property variant accountId |
30 | EditAccount { | ||
31 | accountId: dialog.accountId | ||
33 | 32 | ||
34 | Item { | ||
35 | id: dialog | ||
36 | anchors.centerIn: parent | 33 | anchors.centerIn: parent |
37 | 34 | ||
38 | height: root.height * 0.8 | 35 | height: dialog.height * 0.8 |
39 | width: root.width * 0.8 | 36 | width: dialog.width * 0.8 |
40 | |||
41 | Loader { | ||
42 | anchors.fill: parent | ||
43 | |||
44 | source: root.uiSource | ||
45 | onLoaded: item.accountId = root.accountId | ||
46 | } | ||
47 | } | 37 | } |
48 | } | 38 | } |