forked from platypush/platypush
New sensors web panel WIP
This commit is contained in:
parent
54a3643605
commit
40fa640397
2 changed files with 9 additions and 1 deletions
|
@ -1,5 +1,13 @@
|
||||||
@import 'common/vars';
|
@import 'common/vars';
|
||||||
|
|
||||||
.sensors {
|
.sensors {
|
||||||
|
.head {
|
||||||
|
text-align: right;
|
||||||
|
|
||||||
|
button {
|
||||||
|
border: 0;
|
||||||
|
&:hover { background: $hover-bg; }
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue