1
mirror of https://github.com/home-assistant/frontend synced 2024-10-11 04:27:45 +02:00

Add reload scripts button to config

This commit is contained in:
Paulus Schoutsen 2017-04-18 20:45:01 -07:00
parent eb4588938b
commit 5469c425e7

View File

@ -104,7 +104,13 @@
domain='automation'
service='reload'
hidden$='[[!automationLoaded(hass)]]'
>Reload automation</ha-call-service-button>
>Reload Automation</ha-call-service-button>
<ha-call-service-button
hass='[[hass]]'
domain='script'
service='reload'
hidden$='[[!scriptLoaded(hass)]]'
>Reload Scripts</ha-call-service-button>
</div>
</paper-card>
@ -168,6 +174,10 @@ Polymer({
return window.hassUtil.isComponentLoaded(hass, 'automation');
},
scriptLoaded: function (hass) {
return window.hassUtil.isComponentLoaded(hass, 'script');
},
validateConfig: function () {
this.validating = true;
this.validateLog = '';