summaryrefslogtreecommitdiffstats
path: root/components/package/contents/ui
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-03-10 14:45:15 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-03-10 14:45:15 +0100
commitd8e13159711576394099f8954368aeb9da7fa87a (patch)
treea498a2a390348abe0522b0203022e48518d32359 /components/package/contents/ui
parent91eca666b5491041c2d095d599b75830c56530dc (diff)
downloadkube-d8e13159711576394099f8954368aeb9da7fa87a.tar.gz
kube-d8e13159711576394099f8954368aeb9da7fa87a.zip
AccountsController
Diffstat (limited to 'components/package/contents/ui')
-rw-r--r--components/package/contents/ui/Settings.qml24
1 files changed, 18 insertions, 6 deletions
diff --git a/components/package/contents/ui/Settings.qml b/components/package/contents/ui/Settings.qml
index 692ddd0a..1f5fc972 100644
--- a/components/package/contents/ui/Settings.qml
+++ b/components/package/contents/ui/Settings.qml
@@ -57,15 +57,19 @@ Rectangle {
57 id: contextSettings 57 id: contextSettings
58 identifier: "applicationcontext" 58 identifier: "applicationcontext"
59 property string currentAccountId: "current" 59 property string currentAccountId: "current"
60 property var availableAccountTypes: ["maildir"]
61 property var accounts: ["current"]
62 } 60 }
63 61
64 Column { 62 KubeFramework.AccountsController {
63 id: accountsController
64 }
65
66 ColumnLayout {
65 spacing: 5 67 spacing: 5
66 Repeater { 68 Repeater {
67 model: contextSettings.accounts 69 model: accountsController.accounts
68 delegate: Rectangle { 70 delegate: ColumnLayout {
71 height: 100
72 width: 100
69 KubeFramework.AccountFactory { 73 KubeFramework.AccountFactory {
70 id: accountFactory 74 id: accountFactory
71 accountId: modelData 75 accountId: modelData
@@ -81,11 +85,19 @@ Rectangle {
81 Label { 85 Label {
82 text: accountFactory.name 86 text: accountFactory.name
83 } 87 }
84 Loader { source: accountFactory.uiPath } 88 // Loader { source: accountFactory.uiPath }
85 } 89 }
86 } 90 }
87 } 91 }
88 92
93 Button {
94 id: button
95 text: "Create New"
96 onClicked: {
97 accountsController.createAccount("maildir");
98 }
99 }
100
89 //TODO: Add possibility to add more accounts 101 //TODO: Add possibility to add more accounts
90 } 102 }
91} 103}