mirror of https://github.com/KDE/kasts.git
Add PlaceholderMessage to EntryList
This commit is contained in:
parent
eaa4d41d7c
commit
60341592f1
|
@ -45,7 +45,18 @@ Kirigami.ScrollablePage {
|
||||||
entryListModel.fetch();
|
entryListModel.fetch();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Kirigami.PlaceholderMessage {
|
||||||
|
visible: entryList.count === 0
|
||||||
|
|
||||||
|
width: Kirigami.Units.gridUnit * 20
|
||||||
|
anchors.centerIn: parent
|
||||||
|
|
||||||
|
text: i18n("No Entries available.")
|
||||||
|
}
|
||||||
|
|
||||||
ListView {
|
ListView {
|
||||||
|
id: entryList
|
||||||
|
visible: count !== 0
|
||||||
model: EntryListModel {
|
model: EntryListModel {
|
||||||
id: entryListModel
|
id: entryListModel
|
||||||
feed: page.data.url
|
feed: page.data.url
|
||||||
|
|
Loading…
Reference in New Issue