mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
Added refresh button
This commit is contained in:
parent
5d641b76d2
commit
552f78fc5c
@ -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();
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user