From 289a5d9a5d5d07ca0073ee255f588e6be7caeb1a Mon Sep 17 00:00:00 2001 From: Arne Seime Date: Sat, 14 Dec 2024 08:14:17 +0100 Subject: [PATCH 1/2] Do not reload inbox for inboxupdatedevents Signed-off-by: Arne Seime --- .../web/src/pages/settings/things/things-list.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.ui/web/src/pages/settings/things/things-list.vue b/bundles/org.openhab.ui/web/src/pages/settings/things/things-list.vue index 50a952683a..ab983d0ecb 100644 --- a/bundles/org.openhab.ui/web/src/pages/settings/things/things-list.vue +++ b/bundles/org.openhab.ui/web/src/pages/settings/things/things-list.vue @@ -376,7 +376,7 @@ export default { startEventSource () { this.eventSource = this.$oh.sse.connect('/rest/events?topics=openhab/things/*/added,openhab/things/*/removed,openhab/things/*/updated,openhab/things/*/status,openhab/inbox/*', null, (event) => { const topicParts = event.topic.split('/') - if (topicParts[1] === 'inbox') { + if (topicParts[1] === 'inbox' && event.type !== 'InboxUpdatedEvent') { this.loadInbox() } else { switch (topicParts[3]) { From 049ecb8f872cbec85abb517afe249bae3417732a Mon Sep 17 00:00:00 2001 From: Arne Seime Date: Sun, 15 Dec 2024 15:36:09 +0100 Subject: [PATCH 2/2] Do not reload inbox for inboxupdatedevents Signed-off-by: Arne Seime --- .../web/src/pages/settings/things/things-list.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.ui/web/src/pages/settings/things/things-list.vue b/bundles/org.openhab.ui/web/src/pages/settings/things/things-list.vue index ab983d0ecb..6ea333eda0 100644 --- a/bundles/org.openhab.ui/web/src/pages/settings/things/things-list.vue +++ b/bundles/org.openhab.ui/web/src/pages/settings/things/things-list.vue @@ -376,8 +376,10 @@ export default { startEventSource () { this.eventSource = this.$oh.sse.connect('/rest/events?topics=openhab/things/*/added,openhab/things/*/removed,openhab/things/*/updated,openhab/things/*/status,openhab/inbox/*', null, (event) => { const topicParts = event.topic.split('/') - if (topicParts[1] === 'inbox' && event.type !== 'InboxUpdatedEvent') { - this.loadInbox() + if (topicParts[1] === 'inbox') { + if(event.type !== 'InboxUpdatedEvent') { + this.loadInbox() + } } else { switch (topicParts[3]) { case 'status':