Unverified Commit 84a8c1bc authored by Carl Schwan's avatar Carl Schwan 🚴
Browse files

Add message that email is loading



Signed-off-by: Carl Schwan's avatarCarl Schwan <carl@carlschwan.eu>
parent 38d419eb
Pipeline #227062 passed with stage
in 3 minutes and 9 seconds
......@@ -13,7 +13,7 @@ import org.kde.kitemmodels 1.0 as KItemModels
ListView {
id: root
implicitHeight: contentHeight
implicitHeight: root.count === 0 ? Kirigami.Units.gridUnit * 20 : contentHeight
property var item
property alias rootIndex: visualModel.rootIndex
property alias searchString: visualModel.searchString
......@@ -26,6 +26,14 @@ ListView {
id: visualModel
model: messageParser.parts
}
Kirigami.PlaceholderMessage {
anchors.centerIn: parent
visible: root.count === 0
text: i18n("Loading mail...")
icon.name: "mail-folder-inbox"
}
MessageParser {
id: messageParser
item: root.item
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment