From 60341592f1cb6081fc4a21ada3cb8a7a4e55368c Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Thu, 23 Apr 2020 14:17:54 +0200 Subject: [PATCH] Add PlaceholderMessage to EntryList --- src/qml/EntryListPage.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/qml/EntryListPage.qml b/src/qml/EntryListPage.qml index b08ff8c4..ad9ad82c 100644 --- a/src/qml/EntryListPage.qml +++ b/src/qml/EntryListPage.qml @@ -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