diff --git a/platypush/backend/http/static/css/source/webpanel/plugins/sensors/index.scss b/platypush/backend/http/static/css/source/webpanel/plugins/sensors/index.scss index 586551ff9..9106b20de 100644 --- a/platypush/backend/http/static/css/source/webpanel/plugins/sensors/index.scss +++ b/platypush/backend/http/static/css/source/webpanel/plugins/sensors/index.scss @@ -1,5 +1,13 @@ @import 'common/vars'; .sensors { + .head { + text-align: right; + + button { + border: 0; + &:hover { background: $hover-bg; } + } + } } diff --git a/platypush/backend/http/static/js/plugins/sensors/index.js b/platypush/backend/http/static/js/plugins/sensors/index.js index 14cb036d3..341b4deb5 100644 --- a/platypush/backend/http/static/js/plugins/sensors/index.js +++ b/platypush/backend/http/static/js/plugins/sensors/index.js @@ -57,8 +57,8 @@ Vue.component('sensors', { }, mounted: function() { - this.refresh(); registerEventHandler(this.onSensorEvent, 'platypush.message.event.sensor.SensorDataChangeEvent'); + this.refresh(); }, });