From 2b0278a02b8bb5de9da79de395942c55449c1c59 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 26 Mar 2017 22:43:15 +0200 Subject: Update email status --- components/package/contents/ui/ConversationView.qml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'components') diff --git a/components/package/contents/ui/ConversationView.qml b/components/package/contents/ui/ConversationView.qml index 3f5976c2..aa3abcd2 100644 --- a/components/package/contents/ui/ConversationView.qml +++ b/components/package/contents/ui/ConversationView.qml @@ -476,9 +476,20 @@ Rectangle { rightMargin: Kirigami.Units.largeSpacing topMargin: Math.max(attachments.height, Kirigami.Units.largeSpacing) } - //TODO Change text if we're fetching the body - text: "Incomplete body..." visible: model.incomplete + text: "Incomplete body..." + color: Kirigami.Theme.textColor + enabled: false + states: [ + State { + name: "inprogress"; when: model.status == KubeFramework.MailListModel.InProgressStatus + PropertyChanges { target: incompleteBody; text: "Downloading message..." } + }, + State { + name: "error"; when: model.status == KubeFramework.MailListModel.ErrorStatus + PropertyChanges { target: incompleteBody; text: "Failed to download message..." } + } + ] } Item { id: footer -- cgit v1.2.3