summaryrefslogtreecommitdiffstats
path: root/components/package/contents/ui
diff options
context:
space:
mode:
Diffstat (limited to 'components/package/contents/ui')
-rw-r--r--components/package/contents/ui/AccountSwitcher.qml19
1 files changed, 17 insertions, 2 deletions
diff --git a/components/package/contents/ui/AccountSwitcher.qml b/components/package/contents/ui/AccountSwitcher.qml
index 74b6c1ff..8e82dc03 100644
--- a/components/package/contents/ui/AccountSwitcher.qml
+++ b/components/package/contents/ui/AccountSwitcher.qml
@@ -163,9 +163,24 @@ Controls.ToolButton {
163 } 163 }
164 164
165 Controls.ToolButton { 165 Controls.ToolButton {
166 id: statusIcon
167 visible: false
168 iconName: ""
166 enabled: false 169 enabled: false
167 visible: model.showStatus 170 states: [
168 iconName: model.statusIcon 171 State {
172 name: "busy"; when: model.status == KubeAccountsFramework.AccountsModel.BusyStatus
173 PropertyChanges { target: statusIcon; iconName: "view-refresh"; visible: true }
174 },
175 State {
176 name: "error"; when: model.status == KubeAccountsFramework.AccountsModel.ErrorStatus
177 PropertyChanges { target: statusIcon; iconName: "emblem-error"; visible: true }
178 },
179 State {
180 name: "checkmark"; when: model.status == KubeAccountsFramework.AccountsModel.ConnectedStatus
181 PropertyChanges { target: statusIcon; iconName: "checkmark"; visible: true }
182 }
183 ]
169 } 184 }
170 } 185 }
171 Controls2.Button { 186 Controls2.Button {