mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 18:56:39 +00:00
Update reboot shutdown host dialog (#13777)
This commit is contained in:
parent
bb0529ecd2
commit
ff92768973
@ -376,10 +376,11 @@ class HaConfigHardware extends SubscribeMixin(LitElement) {
|
|||||||
|
|
||||||
private async _hostReboot(): Promise<void> {
|
private async _hostReboot(): Promise<void> {
|
||||||
const confirmed = await showConfirmationDialog(this, {
|
const confirmed = await showConfirmationDialog(this, {
|
||||||
title: this.hass.localize("ui.panel.config.hardware.reboot_host"),
|
title: this.hass.localize("ui.panel.config.hardware.reboot_host_title"),
|
||||||
text: this.hass.localize("ui.panel.config.hardware.reboot_host_confirm"),
|
text: this.hass.localize("ui.panel.config.hardware.reboot_host_text"),
|
||||||
confirmText: this.hass.localize("ui.panel.config.hardware.reboot_host"),
|
confirmText: this.hass.localize("ui.panel.config.hardware.reboot"),
|
||||||
dismissText: this.hass.localize("ui.common.cancel"),
|
dismissText: this.hass.localize("ui.common.cancel"),
|
||||||
|
destructive: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!confirmed) {
|
if (!confirmed) {
|
||||||
@ -408,12 +409,11 @@ class HaConfigHardware extends SubscribeMixin(LitElement) {
|
|||||||
|
|
||||||
private async _hostShutdown(): Promise<void> {
|
private async _hostShutdown(): Promise<void> {
|
||||||
const confirmed = await showConfirmationDialog(this, {
|
const confirmed = await showConfirmationDialog(this, {
|
||||||
title: this.hass.localize("ui.panel.config.hardware.shutdown_host"),
|
title: this.hass.localize("ui.panel.config.hardware.shutdown_host_title"),
|
||||||
text: this.hass.localize(
|
text: this.hass.localize("ui.panel.config.hardware.shutdown_host_text"),
|
||||||
"ui.panel.config.hardware.shutdown_host_confirm"
|
confirmText: this.hass.localize("ui.panel.config.hardware.shutdown"),
|
||||||
),
|
|
||||||
confirmText: this.hass.localize("ui.panel.config.hardware.shutdown_host"),
|
|
||||||
dismissText: this.hass.localize("ui.common.cancel"),
|
dismissText: this.hass.localize("ui.common.cancel"),
|
||||||
|
destructive: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!confirmed) {
|
if (!confirmed) {
|
||||||
|
@ -1622,14 +1622,18 @@
|
|||||||
},
|
},
|
||||||
"processor": "Processor",
|
"processor": "Processor",
|
||||||
"memory": "Memory",
|
"memory": "Memory",
|
||||||
"reboot_host": "Reboot host",
|
"rebooting_host": "Rebooting system",
|
||||||
"rebooting_host": "Rebooting host",
|
"reboot": "Reboot",
|
||||||
"reboot_host_confirm": "Are you sure you want to reboot your host?",
|
"reboot_host": "Reboot system",
|
||||||
"failed_to_reboot_host": "Failed to reboot host",
|
"reboot_host_title": "Reboot system?",
|
||||||
"shutdown_host": "Shutdown host",
|
"reboot_host_text": "This will reboot the complete system which includes the Core and all Add-ons.",
|
||||||
"host_shutting_down": "Host shutting down",
|
"failed_to_reboot_host": "Failed to reboot system",
|
||||||
"shutdown_host_confirm": "Are you sure you want to shutdown your host?",
|
"host_shutting_down": "system shutting down",
|
||||||
"failed_to_shutdown_host": "Failed to shutdown host",
|
"shutdown": "Shutdown",
|
||||||
|
"shutdown_host": "Shutdown system",
|
||||||
|
"shutdown_host_title": "Shutdown system?",
|
||||||
|
"shutdown_host_text": "This will shutdown the complete system which includes the Core and all Add-ons.",
|
||||||
|
"failed_to_shutdown_host": "Failed to shutdown system",
|
||||||
"board": "Board",
|
"board": "Board",
|
||||||
"documentation": "Documentation",
|
"documentation": "Documentation",
|
||||||
"documentation_description": "Find extra information about your device"
|
"documentation_description": "Find extra information about your device"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user