summaryrefslogtreecommitdiffstats
path: root/components/package
diff options
context:
space:
mode:
Diffstat (limited to 'components/package')
-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 bada1140..8da372e7 100644
--- a/components/package/contents/ui/Settings.qml
+++ b/components/package/contents/ui/Settings.qml
@@ -58,15 +58,19 @@ Rectangle {
58 id: contextSettings 58 id: contextSettings
59 identifier: "applicationcontext" 59 identifier: "applicationcontext"
60 property string currentAccountId: "current" 60 property string currentAccountId: "current"
61 property var availableAccountTypes: ["maildir"]
62 property var accounts: ["current"]
63 } 61 }
64 62
65 Column { 63 KubeFramework.AccountsController {
64 id: accountsController
65 }
66
67 ColumnLayout {
66 spacing: 5 68 spacing: 5
67 Repeater { 69 Repeater {
68 model: contextSettings.accounts 70 model: accountsController.accounts
69 delegate: Rectangle { 71 delegate: ColumnLayout {
72 height: 100
73 width: 100
70 KubeFramework.AccountFactory { 74 KubeFramework.AccountFactory {
71 id: accountFactory 75 id: accountFactory
72 accountId: modelData 76 accountId: modelData
@@ -82,11 +86,19 @@ Rectangle {
82 Label { 86 Label {
83 text: accountFactory.name 87 text: accountFactory.name
84 } 88 }
85 Loader { source: accountFactory.uiPath } 89 // Loader { source: accountFactory.uiPath }
86 } 90 }
87 } 91 }
88 } 92 }
89 93
94 Button {
95 id: button
96 text: "Create New"
97 onClicked: {
98 accountsController.createAccount("maildir");
99 }
100 }
101
90 //TODO: Add possibility to add more accounts 102 //TODO: Add possibility to add more accounts
91 } 103 }
92} 104}