summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/kube/contents/ui/MailView.qml65
1 files changed, 7 insertions, 58 deletions
diff --git a/components/kube/contents/ui/MailView.qml b/components/kube/contents/ui/MailView.qml
index 8ae2ffe4..2bbe6652 100644
--- a/components/kube/contents/ui/MailView.qml
+++ b/components/kube/contents/ui/MailView.qml
@@ -89,64 +89,13 @@ SplitView {
89 color: Kube.Colors.viewBackgroundColor 89 color: Kube.Colors.viewBackgroundColor
90 opacity: 0.3 90 opacity: 0.3
91 } 91 }
92 92 Kube.StatusBar {
93 Repeater { 93 accountId: accountFolderview.currentAccount
94 model: Kube.AccountsModel { 94 anchors {
95 accountId: accountFolderview.currentAccount 95 top: border.bottom
96 } 96 left: statusBar.left
97 97 right: statusBar.right
98 Column { 98 bottom: statusBar.bottom
99 anchors {
100 top: border.bottom
101 left: statusBar.left
102 right: statusBar.right
103 bottom: statusBar.bottom
104 }
105 spacing: Kube.Units.smallSpacing
106 Kube.Label {
107 id: statusText
108 anchors.horizontalCenter: parent.horizontalCenter
109 visible: false
110 color: Kube.Colors.highlightedTextColor
111 states: [
112 State {
113 name: "disconnected"; when: model.status == Kube.AccountsModel.OfflineStatus
114 PropertyChanges { target: statusBar; visible: true }
115 PropertyChanges { target: statusText; text: "Disconnected"; visible: true }
116 },
117 State {
118 name: "busy"; when: model.status == Kube.AccountsModel.BusyStatus
119 PropertyChanges { target: statusBar; visible: true }
120 PropertyChanges { target: statusText; text: "Synchronizing..."; visible: true }
121 PropertyChanges { target: progressBar; visible: true }
122 },
123 State {
124 name: "error"; when: model.status == Kube.AccountsModel.ErrorStatus
125 PropertyChanges { target: statusBar; visible: true }
126 //TODO get to an error description
127 PropertyChanges { target: statusText; text: "Error"; visible: true }
128 }
129 ]
130 }
131 Kube.ProgressBar {
132 id: progressBar
133 anchors.horizontalCenter: parent.horizontalCenter
134 height: 2
135 width: parent.width - Kube.Units.smallSpacing * 2
136
137 indeterminate: true
138 visible: false
139
140 Kube.Listener {
141 filter: Kube.Messages.progressNotification
142 onMessageReceived: {
143 progressBar.indeterminate = false
144 progressBar.from = 0
145 progressBar.to = message.total
146 progressBar.value = message.progress
147 }
148 }
149 }
150 } 99 }
151 } 100 }
152 } 101 }