From 70d67634edfe0d6f735c463081aef392e4e94234 Mon Sep 17 00:00:00 2001 From: Yannick Schaus Date: Sat, 25 Sep 2021 00:13:53 +0200 Subject: [PATCH] Fix oh-icon not updating Fixes #1162. Fixes #1164. Signed-off-by: Yannick Schaus --- .../web/src/components/widgets/system/oh-icon.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bundles/org.openhab.ui/web/src/components/widgets/system/oh-icon.vue b/bundles/org.openhab.ui/web/src/components/widgets/system/oh-icon.vue index 0415e1fa62..d78cddf8cb 100644 --- a/bundles/org.openhab.ui/web/src/components/widgets/system/oh-icon.vue +++ b/bundles/org.openhab.ui/web/src/components/widgets/system/oh-icon.vue @@ -68,13 +68,13 @@ export default { actualState (val) { if (val !== this.currentState) { this.currentState = val - this.updateIcon() + if (this.iconType === 'oh') this.updateIcon() } }, - actualIcon (val) { + iconName (val) { if (val !== this.currentIcon) { this.currentIcon = val - this.updateIcon() + if (this.iconType === 'oh') this.updateIcon() } } },