From f574b799d1bf4e2d5f361ce1d60a4e08faac6e28 Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Sat, 26 Oct 2024 13:57:31 +0200 Subject: [PATCH] Fix flickering of list pages when updating Partly regression from #2823 and #2827. Signed-off-by: Florian Hotze --- .../pages/settings/items/items-list-vlist.vue | 16 +++++++++------- .../web/src/pages/settings/pages/pages-list.vue | 10 ++++++---- .../web/src/pages/settings/rules/rules-list.vue | 10 ++++++---- .../web/src/pages/settings/schedule/schedule.vue | 10 ++++++---- .../src/pages/settings/things/things-list.vue | 10 ++++++---- 5 files changed, 33 insertions(+), 23 deletions(-) diff --git a/bundles/org.openhab.ui/web/src/pages/settings/items/items-list-vlist.vue b/bundles/org.openhab.ui/web/src/pages/settings/items/items-list-vlist.vue index 8a7acc7d17..6358fc6b33 100644 --- a/bundles/org.openhab.ui/web/src/pages/settings/items/items-list-vlist.vue +++ b/bundles/org.openhab.ui/web/src/pages/settings/items/items-list-vlist.vue @@ -6,10 +6,10 @@ - + { this.items = data.sort((a, b) => { @@ -183,7 +184,11 @@ export default { return labelA.localeCompare(labelB) }) this.$refs.itemsList.f7VirtualList.replaceAllItems(this.items) + this.initSearchbar = true + this.loading = false + if (!this.eventSource) this.startEventSource() + this.ready = true this.$nextTick(() => { if (this.$device.desktop) { @@ -191,9 +196,6 @@ export default { } this.$refs.searchbar?.f7Searchbar.search(this.$f7.data.lastItemSearchQuery || '') }) - - this.loading = false - this.ready = true }) }, startEventSource () { diff --git a/bundles/org.openhab.ui/web/src/pages/settings/pages/pages-list.vue b/bundles/org.openhab.ui/web/src/pages/settings/pages/pages-list.vue index 5fdb394b7b..72890f166c 100644 --- a/bundles/org.openhab.ui/web/src/pages/settings/pages/pages-list.vue +++ b/bundles/org.openhab.ui/web/src/pages/settings/pages/pages-list.vue @@ -6,9 +6,9 @@ - + { return a.config.label.localeCompare(b.config.label) }) + this.initSearchbar = true this.loading = false this.ready = true diff --git a/bundles/org.openhab.ui/web/src/pages/settings/rules/rules-list.vue b/bundles/org.openhab.ui/web/src/pages/settings/rules/rules-list.vue index c25ed034a8..f86c3a37ca 100644 --- a/bundles/org.openhab.ui/web/src/pages/settings/rules/rules-list.vue +++ b/bundles/org.openhab.ui/web/src/pages/settings/rules/rules-list.vue @@ -6,10 +6,10 @@ - + - + - + { this.things = data.sort((a, b) => (a.label || a.UID).localeCompare(b.label || a.UID)) + this.initSeachbar = true this.loading = false this.ready = true this.$nextTick(() => {