mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-14 12:56:37 +00:00
Add reload scripts button to config
This commit is contained in:
parent
eb4588938b
commit
5469c425e7
@ -104,7 +104,13 @@
|
|||||||
domain='automation'
|
domain='automation'
|
||||||
service='reload'
|
service='reload'
|
||||||
hidden$='[[!automationLoaded(hass)]]'
|
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>
|
</div>
|
||||||
</paper-card>
|
</paper-card>
|
||||||
|
|
||||||
@ -168,6 +174,10 @@ Polymer({
|
|||||||
return window.hassUtil.isComponentLoaded(hass, 'automation');
|
return window.hassUtil.isComponentLoaded(hass, 'automation');
|
||||||
},
|
},
|
||||||
|
|
||||||
|
scriptLoaded: function (hass) {
|
||||||
|
return window.hassUtil.isComponentLoaded(hass, 'script');
|
||||||
|
},
|
||||||
|
|
||||||
validateConfig: function () {
|
validateConfig: function () {
|
||||||
this.validating = true;
|
this.validating = true;
|
||||||
this.validateLog = '';
|
this.validateLog = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user