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 89943657..980ceb0a 100644 --- a/platypush/backend/http/webapp/src/components/panels/Entities/Switch.vue +++ b/platypush/backend/http/webapp/src/components/panels/Entities/Switch.vue @@ -11,8 +11,11 @@
- +
@@ -38,6 +41,13 @@ export default { id: this.value.id, action: 'toggle', }) + + if (this.value.is_write_only) { + // Show a quick on/off animation for write-only switches + const self = this + self.value.state = true + setTimeout(() => self.value.state = false, 250) + } } finally { this.$emit('loading', false) }