summaryrefslogtreecommitdiffstats
path: root/components/package/contents/ui/ConversationView.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-23 10:39:58 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-23 10:39:58 +0100
commitc920d2346b39da89297aede673e9853829e181b3 (patch)
treec370450a6c7cf33bd534ea52646389be13345b76 /components/package/contents/ui/ConversationView.qml
parent7d968fb8e51977ce7b49e0b8ccf96d8e30868426 (diff)
downloadkube-c920d2346b39da89297aede673e9853829e181b3.tar.gz
kube-c920d2346b39da89297aede673e9853829e181b3.zip
Show something if the data is not yet available.
We're still missing: * For empty folders we have to differentiate between truly empty folder, and folders that have not been synchronized yet. Further an indicator when the fetch is in progress would be useful. * For mails we need to indicate when the mail is being fetched.
Diffstat (limited to 'components/package/contents/ui/ConversationView.qml')
-rw-r--r--components/package/contents/ui/ConversationView.qml17
1 files changed, 16 insertions, 1 deletions
diff --git a/components/package/contents/ui/ConversationView.qml b/components/package/contents/ui/ConversationView.qml
index eedd446b..3f5976c2 100644
--- a/components/package/contents/ui/ConversationView.qml
+++ b/components/package/contents/ui/ConversationView.qml
@@ -189,7 +189,7 @@ Rectangle {
189 Rectangle { 189 Rectangle {
190 id: sheet 190 id: sheet
191 anchors.centerIn: parent 191 anchors.centerIn: parent
192 implicitHeight: header.height + attachments.height + body.height + footer.height + Kirigami.Units.largeSpacing 192 implicitHeight: header.height + attachments.height + body.height + incompleteBody.height + footer.height + Kirigami.Units.largeSpacing
193 width: parent.width - Kirigami.Units.gridUnit * 2 193 width: parent.width - Kirigami.Units.gridUnit * 2
194 194
195 //Overlay for non-active mails 195 //Overlay for non-active mails
@@ -463,8 +463,23 @@ Rectangle {
463 height: desiredHeight 463 height: desiredHeight
464 464
465 message: model.mimeMessage 465 message: model.mimeMessage
466 visible: !model.incomplete
466 } 467 }
467 468
469 Label {
470 id: incompleteBody
471 anchors {
472 top: header.bottom
473 left: header.left
474 right: header.right
475 leftMargin: Kirigami.Units.largeSpacing
476 rightMargin: Kirigami.Units.largeSpacing
477 topMargin: Math.max(attachments.height, Kirigami.Units.largeSpacing)
478 }
479 //TODO Change text if we're fetching the body
480 text: "Incomplete body..."
481 visible: model.incomplete
482 }
468 Item { 483 Item {
469 id: footer 484 id: footer
470 485