summaryrefslogtreecommitdiffstats
path: root/components/package/contents/ui/AccountSwitcher.qml
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2016-06-16 16:28:15 +0200
committerMichael Bohlender <michael.bohlender@kdemail.net>2016-06-16 16:28:15 +0200
commit7b970caca1e2e7323249193bb087e379d7b9b724 (patch)
tree33dfd8d887204a93660d7a2fc49654f5f5dfd174 /components/package/contents/ui/AccountSwitcher.qml
parent02347d57f8009cacb8d1aa80a763e33688feda2e (diff)
downloadkube-7b970caca1e2e7323249193bb087e379d7b9b724.tar.gz
kube-7b970caca1e2e7323249193bb087e379d7b9b724.zip
initial add accounts dialog
Diffstat (limited to 'components/package/contents/ui/AccountSwitcher.qml')
-rw-r--r--components/package/contents/ui/AccountSwitcher.qml19
1 files changed, 13 insertions, 6 deletions
diff --git a/components/package/contents/ui/AccountSwitcher.qml b/components/package/contents/ui/AccountSwitcher.qml
index bfdc4f7a..79eba65b 100644
--- a/components/package/contents/ui/AccountSwitcher.qml
+++ b/components/package/contents/ui/AccountSwitcher.qml
@@ -22,12 +22,7 @@ import QtQuick.Layouts 1.1
22import org.kde.kirigami 1.0 as Kirigami 22import org.kde.kirigami 1.0 as Kirigami
23 23
24import org.kube.framework.domain 1.0 as KubeFramework 24import org.kube.framework.domain 1.0 as KubeFramework
25 25import org.kube.components 1.0 as KubeComponents
26/*
27 C omboBox { ** *
28 model: KubeFramework.AccountsModel { }
29 textRole: "name"
30 } */
31 26
32Button { 27Button {
33 id: accountSwitcher 28 id: accountSwitcher
@@ -78,6 +73,18 @@ Button {
78 } 73 }
79 74
80 text: "Create new Account" 75 text: "Create new Account"
76
77 onClicked: {
78 newAccountComponent.createObject(app)
79 }
80
81 Component {
82 id: newAccountComponent
83 KubeComponents.NewAccountDialog {
84 id: settings
85 anchors.fill: parent
86 }
87 }
81 } 88 }
82 89
83 Button { 90 Button {