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 91fe95f318..57d74bd9ea 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 82b1be8098..b6fbb6093a 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 5137ae7c5e..9499878a48 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 6d133d023d..a404268e57 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 10e017c872..a3bb4ebacd 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 2f06b586c4..4c2f3f07b1 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 d38d5eee88..1928130ca1 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 9dda493ef7..3e17c9530c 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 980ceb0a68..2e18d192bb 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 @@