Skip to content

Commit

Permalink
[basicui] Reload page when the state/command description of an item i…
Browse files Browse the repository at this point in the history
…n the page (#1120)

Related to openhab/openhab-core#2413

Signed-off-by: Laurent Garnier <[email protected]>
  • Loading branch information
lolodomo authored Jun 26, 2021
1 parent d5837ec commit 2794c96
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bundles/org.openhab.ui.basic/web-src/smarthome.js
Original file line number Diff line number Diff line change
Expand Up @@ -2035,6 +2035,12 @@
return;
}

if (data.descriptionChanged === true) {
window.location.reload(true);
_t.pause();
return;
}

if (data.item !== undefined) {
if (data.state === undefined) {
state = data.item.state;
Expand Down

0 comments on commit 2794c96

Please sign in to comment.