Add PlaceholderMessage to EntryList

This commit is contained in:
Tobias Fella 2020-04-23 14:17:54 +02:00
parent eaa4d41d7c
commit 60341592f1
1 changed files with 11 additions and 0 deletions

View File

@ -45,7 +45,18 @@ Kirigami.ScrollablePage {
entryListModel.fetch();
}
Kirigami.PlaceholderMessage {
visible: entryList.count === 0
width: Kirigami.Units.gridUnit * 20
anchors.centerIn: parent
text: i18n("No Entries available.")
}
ListView {
id: entryList
visible: count !== 0
model: EntryListModel {
id: entryListModel
feed: page.data.url