summaryrefslogtreecommitdiffstats
path: root/components/mail/contents/ui/Mail.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-20 16:14:36 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-20 16:15:28 +0100
commitf8b7fca3671b6458f1fac8e59769920da1e2aaea (patch)
tree9f5bf8923c2910fab0cdd2fdeb202f920703e692 /components/mail/contents/ui/Mail.qml
parent21ee389ee2c195ac1895c10c4d5cf9bb3dc1d3f3 (diff)
downloadkube-f8b7fca3671b6458f1fac8e59769920da1e2aaea.tar.gz
kube-f8b7fca3671b6458f1fac8e59769920da1e2aaea.zip
Show the account status next to the account name
Diffstat (limited to 'components/mail/contents/ui/Mail.qml')
-rw-r--r--components/mail/contents/ui/Mail.qml32
1 files changed, 24 insertions, 8 deletions
diff --git a/components/mail/contents/ui/Mail.qml b/components/mail/contents/ui/Mail.qml
index 528c9073..1ae4062d 100644
--- a/components/mail/contents/ui/Mail.qml
+++ b/components/mail/contents/ui/Mail.qml
@@ -28,6 +28,7 @@ import org.kube.framework.actions 1.0 as KubeAction
28import org.kube.framework.settings 1.0 as KubeSettings 28import org.kube.framework.settings 1.0 as KubeSettings
29import org.kube.framework.domain 1.0 as KubeFramework 29import org.kube.framework.domain 1.0 as KubeFramework
30import org.kube.framework.notifications 1.0 as KubeNotifications 30import org.kube.framework.notifications 1.0 as KubeNotifications
31import org.kube.framework.accounts 1.0 as KubeAccountsFramework
31import org.kube.components 1.0 as KubeComponents 32import org.kube.components 1.0 as KubeComponents
32import org.kube.components.accounts 1.0 as KubeAccounts 33import org.kube.components.accounts 1.0 as KubeAccounts
33 34
@@ -270,16 +271,31 @@ Controls2.ApplicationWindow {
270 } 271 }
271 } 272 }
272 273
273 Text { 274 Repeater {
274 anchors { 275 model: KubeAccountsFramework.AccountsModel {
275 bottom: parent.bottom 276 accountId: accountSwitcher.accountId
276 left: parent.left
277 leftMargin: Kirigami.Units.smallSpacing
278 } 277 }
279 278
280 text: accountSwitcher.accountName 279 RowLayout {
281 font.weight: Font.DemiBold 280 anchors {
282 color: "white" 281 bottom: parent.bottom
282 left: parent.left
283 leftMargin: Kirigami.Units.smallSpacing
284 }
285 Layout.fillHeight: true
286
287 Text {
288 text: model.name
289 font.weight: Font.DemiBold
290 color: "white"
291 }
292
293 ToolButton {
294 visible: model.showStatus
295 iconName: model.statusIcon
296 enabled: false
297 }
298 }
283 } 299 }
284 } 300 }
285 301