Skip to content

Commit

Permalink
Do not reload inbox for inboxupdatedevents
Browse files Browse the repository at this point in the history
Signed-off-by: Arne Seime <[email protected]>
  • Loading branch information
seime committed Dec 15, 2024
1 parent 289a5d9 commit 049ecb8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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') {

Check failure on line 380 in bundles/org.openhab.ui/web/src/pages/settings/things/things-list.vue

View workflow job for this annotation

GitHub Actions / checks

Expected space(s) after "if"

Check failure on line 380 in bundles/org.openhab.ui/web/src/pages/settings/things/things-list.vue

View workflow job for this annotation

GitHub Actions / webpack-stats

Expected space(s) after "if"
this.loadInbox()
}
} else {
switch (topicParts[3]) {
case 'status':
Expand Down

0 comments on commit 049ecb8

Please sign in to comment.