diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/Device.vue b/platypush/backend/http/webapp/src/components/panels/Entities/Device.vue
index 91fe95f31..57d74bd9e 100644
--- a/platypush/backend/http/webapp/src/components/panels/Entities/Device.vue
+++ b/platypush/backend/http/webapp/src/components/panels/Entities/Device.vue
@@ -3,7 +3,7 @@
diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/Dimmer.vue b/platypush/backend/http/webapp/src/components/panels/Entities/Dimmer.vue
index 82b1be809..b6fbb6093 100644
--- a/platypush/backend/http/webapp/src/components/panels/Entities/Dimmer.vue
+++ b/platypush/backend/http/webapp/src/components/panels/Entities/Dimmer.vue
@@ -3,7 +3,7 @@
diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/EntityIcon.vue b/platypush/backend/http/webapp/src/components/panels/Entities/EntityIcon.vue
index 5137ae7c5..9499878a4 100644
--- a/platypush/backend/http/webapp/src/components/panels/Entities/EntityIcon.vue
+++ b/platypush/backend/http/webapp/src/components/panels/Entities/EntityIcon.vue
@@ -4,7 +4,7 @@
:style="colorFillStyle">
-
+
@@ -25,11 +25,16 @@ export default {
default: false,
},
- icon: {
+ entity: {
type: Object,
required: true,
},
+ icon: {
+ type: Object,
+ default: () => {},
+ },
+
hasColorFill: {
type: Boolean,
default: false,
@@ -44,16 +49,23 @@ export default {
},
computed: {
+ computedIcon() {
+ let icon = {...(this.entity?.meta?.icon || {})}
+ if (Object.keys(this.icon || {}).length)
+ icon = this.icon
+ return {...icon}
+ },
+
colorFill() {
- return (this.hasColorFill && this.icon.color) ? this.icon.color : null
+ return this.hasColorFill && this.computedIcon.color
},
colorFillStyle() {
return this.colorFill && !this.error ? {'background': this.colorFill} : {}
},
- computedIcon() {
- const icon = {...this.icon}
+ computedIconNormalized() {
+ const icon = {...this.computedIcon}
if (this.colorFill)
delete icon.color
return icon
diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/EnumSensor.vue b/platypush/backend/http/webapp/src/components/panels/Entities/EnumSensor.vue
index 6d133d023..a404268e5 100644
--- a/platypush/backend/http/webapp/src/components/panels/Entities/EnumSensor.vue
+++ b/platypush/backend/http/webapp/src/components/panels/Entities/EnumSensor.vue
@@ -3,7 +3,7 @@
diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/EnumSwitch.vue b/platypush/backend/http/webapp/src/components/panels/Entities/EnumSwitch.vue
index 10e017c87..a3bb4ebac 100644
--- a/platypush/backend/http/webapp/src/components/panels/Entities/EnumSwitch.vue
+++ b/platypush/backend/http/webapp/src/components/panels/Entities/EnumSwitch.vue
@@ -3,7 +3,7 @@
diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/Light.vue b/platypush/backend/http/webapp/src/components/panels/Entities/Light.vue
index 2f06b586c..4c2f3f07b 100644
--- a/platypush/backend/http/webapp/src/components/panels/Entities/Light.vue
+++ b/platypush/backend/http/webapp/src/components/panels/Entities/Light.vue
@@ -2,8 +2,12 @@
-
+
diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/LinkQuality.vue b/platypush/backend/http/webapp/src/components/panels/Entities/LinkQuality.vue
index d38d5eee8..1928130ca 100644
--- a/platypush/backend/http/webapp/src/components/panels/Entities/LinkQuality.vue
+++ b/platypush/backend/http/webapp/src/components/panels/Entities/LinkQuality.vue
@@ -3,7 +3,7 @@
diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/Sensor.vue b/platypush/backend/http/webapp/src/components/panels/Entities/Sensor.vue
index 9dda493ef..3e17c9530 100644
--- a/platypush/backend/http/webapp/src/components/panels/Entities/Sensor.vue
+++ b/platypush/backend/http/webapp/src/components/panels/Entities/Sensor.vue
@@ -3,7 +3,7 @@
diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/Switch.vue b/platypush/backend/http/webapp/src/components/panels/Entities/Switch.vue
index 980ceb0a6..2e18d192b 100644
--- a/platypush/backend/http/webapp/src/components/panels/Entities/Switch.vue
+++ b/platypush/backend/http/webapp/src/components/panels/Entities/Switch.vue
@@ -2,8 +2,10 @@