New sensors web panel WIP

This commit is contained in:
Fabio Manganiello 2019-07-02 14:42:25 +02:00
parent 54a3643605
commit 40fa640397
2 changed files with 9 additions and 1 deletions

View file

@ -1,5 +1,13 @@
@import 'common/vars'; @import 'common/vars';
.sensors { .sensors {
.head {
text-align: right;
button {
border: 0;
&:hover { background: $hover-bg; }
}
}
} }

View file

@ -57,8 +57,8 @@ Vue.component('sensors', {
}, },
mounted: function() { mounted: function() {
this.refresh();
registerEventHandler(this.onSensorEvent, 'platypush.message.event.sensor.SensorDataChangeEvent'); registerEventHandler(this.onSensorEvent, 'platypush.message.event.sensor.SensorDataChangeEvent');
this.refresh();
}, },
}); });