forked from home-assistant/core
Added refresh button
This commit is contained in:
@@ -43,6 +43,7 @@
|
|||||||
<div flex>
|
<div flex>
|
||||||
Home Assistant
|
Home Assistant
|
||||||
</div>
|
</div>
|
||||||
|
<core-icon-button icon="refresh" on-click="{{handleRefreshClick}}"></core-icon-button>
|
||||||
<core-icon-button icon="developer-mode-tv" on-click="{{handleEventClick}}"></core-icon-button>
|
<core-icon-button icon="developer-mode-tv" on-click="{{handleEventClick}}"></core-icon-button>
|
||||||
<core-icon-button icon="settings-remote" on-click="{{handleServiceClick}}"></core-icon-button>
|
<core-icon-button icon="settings-remote" on-click="{{handleServiceClick}}"></core-icon-button>
|
||||||
</core-toolbar>
|
</core-toolbar>
|
||||||
@@ -62,6 +63,10 @@
|
|||||||
this.api = this.$.api;
|
this.api = this.$.api;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
handleRefreshClick: function() {
|
||||||
|
this.api.fetchStates();
|
||||||
|
},
|
||||||
|
|
||||||
handleEventClick: function() {
|
handleEventClick: function() {
|
||||||
this.api.showFireEventDialog();
|
this.api.showFireEventDialog();
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user