diff options
Diffstat (limited to 'components/package/contents/ui/AccountSwitcher.qml')
-rw-r--r-- | components/package/contents/ui/AccountSwitcher.qml | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/components/package/contents/ui/AccountSwitcher.qml b/components/package/contents/ui/AccountSwitcher.qml index 79eba65b..8f7ebb08 100644 --- a/components/package/contents/ui/AccountSwitcher.qml +++ b/components/package/contents/ui/AccountSwitcher.qml | |||
@@ -74,17 +74,17 @@ Button { | |||
74 | 74 | ||
75 | text: "Create new Account" | 75 | text: "Create new Account" |
76 | 76 | ||
77 | onClicked: { | 77 | onClicked: { |
78 | newAccountComponent.createObject(app) | 78 | newAccountComponent.createObject(app) |
79 | } | 79 | } |
80 | 80 | ||
81 | Component { | 81 | Component { |
82 | id: newAccountComponent | 82 | id: newAccountComponent |
83 | KubeComponents.NewAccountDialog { | 83 | KubeComponents.NewAccountDialog { |
84 | id: settings | 84 | id: settings |
85 | anchors.fill: parent | 85 | anchors.fill: parent |
86 | } | ||
87 | } | 86 | } |
87 | } | ||
88 | } | 88 | } |
89 | 89 | ||
90 | Button { | 90 | Button { |
@@ -160,9 +160,22 @@ Button { | |||
160 | opacity: hovered ? 1 : 0.7 | 160 | opacity: hovered ? 1 : 0.7 |
161 | visible: accountDelegate.containsMouse | 161 | visible: accountDelegate.containsMouse |
162 | text: "edit" | 162 | text: "edit" |
163 | |||
164 | onClicked: { | ||
165 | editAccountComponent.createObject(app) | ||
166 | } | ||
163 | } | 167 | } |
164 | } | 168 | } |
165 | } | 169 | } |
170 | |||
171 | Component { | ||
172 | id: editAccountComponent | ||
173 | |||
174 | KubeComponents.EditAccountDialog { | ||
175 | id: editAccount | ||
176 | anchors.fill: parent | ||
177 | } | ||
178 | } | ||
166 | } | 179 | } |
167 | } | 180 | } |
168 | } \ No newline at end of file | 181 | } \ No newline at end of file |