From 53719b971dc816efd85e608e0394147439875933 Mon Sep 17 00:00:00 2001 From: Volker Krause Date: Sun, 18 Jun 2023 11:38:27 +0200 Subject: [PATCH] Show a placeholder message if there are no shared locations --- src/qml/Component/LocationPage.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/qml/Component/LocationPage.qml b/src/qml/Component/LocationPage.qml index d784dbeaf..e3246bcf5 100644 --- a/src/qml/Component/LocationPage.qml +++ b/src/qml/Component/LocationPage.qml @@ -46,5 +46,11 @@ Kirigami.Page { } delegate: LocationMapItem {} } + + Kirigami.PlaceholderMessage { + text: i18n("There are no locations shared in this room.") + visible: map.mapItems.length === 0 + anchors.centerIn: parent + } } }