Added refresh button

This commit is contained in:
Paulus Schoutsen 2014-10-22 19:52:16 -07:00
parent 5d641b76d2
commit 552f78fc5c

View File

@ -43,6 +43,7 @@
<div flex>
Home Assistant
</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="settings-remote" on-click="{{handleServiceClick}}"></core-icon-button>
</core-toolbar>
@ -62,6 +63,10 @@
this.api = this.$.api;
},
handleRefreshClick: function() {
this.api.fetchStates();
},
handleEventClick: function() {
this.api.showFireEventDialog();
},