mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 19:26:36 +00:00
Reload buttons (#4194)
* Change base translation for ui.panel.config.server_control.section.reloading.core * Give each btn a new card-action div
This commit is contained in:
parent
901752bec3
commit
d284d53b93
@ -107,35 +107,47 @@ class HaConfigSectionServerControl extends LocalizeMixin(PolymerElement) {
|
|||||||
service="reload_core_config"
|
service="reload_core_config"
|
||||||
>[[localize('ui.panel.config.server_control.section.reloading.core')]]
|
>[[localize('ui.panel.config.server_control.section.reloading.core')]]
|
||||||
</ha-call-service-button>
|
</ha-call-service-button>
|
||||||
|
</div>
|
||||||
|
<template is="dom-if" if="[[groupLoaded(hass)]]">
|
||||||
|
<div class="card-actions">
|
||||||
<ha-call-service-button
|
<ha-call-service-button
|
||||||
hass="[[hass]]"
|
hass="[[hass]]"
|
||||||
domain="group"
|
domain="group"
|
||||||
service="reload"
|
service="reload"
|
||||||
hidden$="[[!groupLoaded(hass)]]"
|
|
||||||
>[[localize('ui.panel.config.server_control.section.reloading.group')]]
|
>[[localize('ui.panel.config.server_control.section.reloading.group')]]
|
||||||
</ha-call-service-button>
|
</ha-call-service-button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template is="dom-if" if="[[automationLoaded(hass)]]">
|
||||||
|
<div class="card-actions">
|
||||||
<ha-call-service-button
|
<ha-call-service-button
|
||||||
hass="[[hass]]"
|
hass="[[hass]]"
|
||||||
domain="automation"
|
domain="automation"
|
||||||
service="reload"
|
service="reload"
|
||||||
hidden$="[[!automationLoaded(hass)]]"
|
|
||||||
>[[localize('ui.panel.config.server_control.section.reloading.automation')]]
|
>[[localize('ui.panel.config.server_control.section.reloading.automation')]]
|
||||||
</ha-call-service-button>
|
</ha-call-service-button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template is="dom-if" if="[[scriptLoaded(hass)]]">
|
||||||
|
<div class="card-actions">
|
||||||
<ha-call-service-button
|
<ha-call-service-button
|
||||||
hass="[[hass]]"
|
hass="[[hass]]"
|
||||||
domain="script"
|
domain="script"
|
||||||
service="reload"
|
service="reload"
|
||||||
hidden$="[[!scriptLoaded(hass)]]"
|
|
||||||
>[[localize('ui.panel.config.server_control.section.reloading.script')]]
|
>[[localize('ui.panel.config.server_control.section.reloading.script')]]
|
||||||
</ha-call-service-button>
|
</ha-call-service-button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template is="dom-if" if="[[sceneLoaded(hass)]]">
|
||||||
|
<div class="card-actions">
|
||||||
<ha-call-service-button
|
<ha-call-service-button
|
||||||
hass="[[hass]]"
|
hass="[[hass]]"
|
||||||
domain="scene"
|
domain="scene"
|
||||||
service="reload"
|
service="reload"
|
||||||
hidden$="[[!sceneLoaded(hass)]]"
|
|
||||||
>[[localize('ui.panel.config.server_control.section.reloading.scene')]]
|
>[[localize('ui.panel.config.server_control.section.reloading.scene')]]
|
||||||
</ha-call-service-button>
|
</ha-call-service-button>
|
||||||
</div>
|
</div>
|
||||||
|
</template>
|
||||||
</ha-card>
|
</ha-card>
|
||||||
</template>
|
</template>
|
||||||
<ha-card
|
<ha-card
|
||||||
|
@ -465,7 +465,7 @@
|
|||||||
"reloading": {
|
"reloading": {
|
||||||
"heading": "Configuration reloading",
|
"heading": "Configuration reloading",
|
||||||
"introduction": "Some parts of Home Assistant can reload without requiring a restart. Hitting reload will unload their current configuration and load the new one.",
|
"introduction": "Some parts of Home Assistant can reload without requiring a restart. Hitting reload will unload their current configuration and load the new one.",
|
||||||
"core": "Reload core",
|
"core": "Reload location & customize",
|
||||||
"group": "Reload groups",
|
"group": "Reload groups",
|
||||||
"automation": "Reload automations",
|
"automation": "Reload automations",
|
||||||
"script": "Reload scripts"
|
"script": "Reload scripts"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user