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