summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-27 11:50:25 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-27 11:50:25 +0200
commit99293aec6986cd2a6e6022c5882a8f9de0335621 (patch)
treef4aafd9f9391e974c612a6fa67fa7f957a605c2f /components
parent5a5a8c11ed1b1a90452c4f7ed36650be36fbaa2c (diff)
downloadkube-99293aec6986cd2a6e6022c5882a8f9de0335621.tar.gz
kube-99293aec6986cd2a6e6022c5882a8f9de0335621.zip
Show folder sync status
Diffstat (limited to 'components')
-rw-r--r--components/package/contents/ui/FolderListView.qml35
1 files changed, 31 insertions, 4 deletions
diff --git a/components/package/contents/ui/FolderListView.qml b/components/package/contents/ui/FolderListView.qml
index a4d25e02..19fda843 100644
--- a/components/package/contents/ui/FolderListView.qml
+++ b/components/package/contents/ui/FolderListView.qml
@@ -148,16 +148,43 @@ Rectangle {
148 } 148 }
149 } 149 }
150 150
151 Text { 151 Row {
152 anchors { 152 anchors {
153 verticalCenter: parent.verticalCenter 153 verticalCenter: parent.verticalCenter
154 left: parent.left 154 left: parent.left
155 leftMargin: Kirigami.Units.smallSpacing
156 } 155 }
156 Text {
157 anchors {
158 verticalCenter: parent.verticalCenter
159 leftMargin: Kirigami.Units.smallSpacing
160 }
157 161
158 text: styleData.value 162 text: styleData.value
159 163
160 color: Kirigami.Theme.viewBackgroundColor 164 color: Kirigami.Theme.viewBackgroundColor
165 }
166 ToolButton {
167 id: statusIcon
168 visible: false
169 iconName: ""
170 enabled: false
171 states: [
172 State {
173 name: "busy"; when: model.status == KubeFramework.FolderListModel.InProgressStatus
174 PropertyChanges { target: statusIcon; iconName: "view-refresh"; visible: styleData.selected }
175 },
176 State {
177 name: "error"; when: model.status == KubeFramework.FolderListModel.ErrorStatus
178 //The error status should only be visible for a moment, otherwise we'll eventually always show errors everywhere.
179 PropertyChanges { target: statusIcon; iconName: "emblem-error"; visible: styleData.selected }
180 },
181 State {
182 name: "checkmark"; when: model.status == KubeFramework.FolderListModel.SuccessStatus
183 //The success status should only be visible for a moment, otherwise we'll eventually always show checkmarks everywhere.
184 PropertyChanges { target: statusIcon; iconName: "checkmark"; visible: styleData.selected }
185 }
186 ]
187 }
161 } 188 }
162 } 189 }
163 190