mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Add reload all service to quick bar and dev tools (#15512)
This commit is contained in:
parent
48dcd98634
commit
dfbe32018a
@ -552,6 +552,18 @@ export class QuickBar extends LitElement {
|
|||||||
),
|
),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Add "homeassistant.reload_all"
|
||||||
|
commands.push({
|
||||||
|
primaryText: this.hass.localize(
|
||||||
|
"ui.dialogs.quick-bar.commands.reload.all"
|
||||||
|
),
|
||||||
|
action: () => this.hass.callService("homeassistant", "reload_all"),
|
||||||
|
iconPath: mdiReload,
|
||||||
|
categoryText: this.hass.localize(
|
||||||
|
"ui.dialogs.quick-bar.commands.types.reload"
|
||||||
|
),
|
||||||
|
});
|
||||||
|
|
||||||
return commands.map((command) => ({
|
return commands.map((command) => ({
|
||||||
...command,
|
...command,
|
||||||
categoryKey: "reload",
|
categoryKey: "reload",
|
||||||
|
@ -121,6 +121,16 @@ export class DeveloperYamlConfig extends LitElement {
|
|||||||
"ui.panel.developer-tools.tabs.yaml.section.reloading.introduction"
|
"ui.panel.developer-tools.tabs.yaml.section.reloading.introduction"
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
<div class="card-actions">
|
||||||
|
<ha-call-service-button
|
||||||
|
.hass=${this.hass}
|
||||||
|
domain="homeassistant"
|
||||||
|
service="reload_all"
|
||||||
|
>${this.hass.localize(
|
||||||
|
"ui.panel.developer-tools.tabs.yaml.section.reloading.all"
|
||||||
|
)}
|
||||||
|
</ha-call-service-button>
|
||||||
|
</div>
|
||||||
<div class="card-actions">
|
<div class="card-actions">
|
||||||
<ha-call-service-button
|
<ha-call-service-button
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
|
@ -721,6 +721,7 @@
|
|||||||
"quick-bar": {
|
"quick-bar": {
|
||||||
"commands": {
|
"commands": {
|
||||||
"reload": {
|
"reload": {
|
||||||
|
"all": "[%key:ui::panel::developer-tools::tabs::yaml::section::reloading::all%]",
|
||||||
"reload": "[%key:ui::panel::developer-tools::tabs::yaml::section::reloading::reload%]",
|
"reload": "[%key:ui::panel::developer-tools::tabs::yaml::section::reloading::reload%]",
|
||||||
"core": "[%key:ui::panel::developer-tools::tabs::yaml::section::reloading::core%]",
|
"core": "[%key:ui::panel::developer-tools::tabs::yaml::section::reloading::core%]",
|
||||||
"group": "[%key:ui::panel::developer-tools::tabs::yaml::section::reloading::group%]",
|
"group": "[%key:ui::panel::developer-tools::tabs::yaml::section::reloading::group%]",
|
||||||
@ -4899,6 +4900,7 @@
|
|||||||
"invalid": "Configuration invalid!"
|
"invalid": "Configuration invalid!"
|
||||||
},
|
},
|
||||||
"reloading": {
|
"reloading": {
|
||||||
|
"all": "All YAML configuration",
|
||||||
"heading": "YAML configuration reloading",
|
"heading": "YAML configuration reloading",
|
||||||
"introduction": "Some parts of Home Assistant can reload without requiring a restart. Clicking one of the options below will unload their current YAML configuration and load the new one.",
|
"introduction": "Some parts of Home Assistant can reload without requiring a restart. Clicking one of the options below will unload their current YAML configuration and load the new one.",
|
||||||
"reload": "{domain}",
|
"reload": "{domain}",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user