diff --git a/src/panels/lovelace/cards/hui-safe-mode-card.ts b/src/panels/lovelace/cards/hui-safe-mode-card.ts index 01f579d3f8..7b7fa5b340 100644 --- a/src/panels/lovelace/cards/hui-safe-mode-card.ts +++ b/src/panels/lovelace/cards/hui-safe-mode-card.ts @@ -10,7 +10,7 @@ import { import "@material/mwc-button"; import "../../../components/ha-card"; - +import "../../../panels/developer-tools/logs/error-log-card"; import { LovelaceCard } from "../types"; import { HomeAssistant } from "../../../types"; @@ -38,15 +38,7 @@ export class HuiSafeModeCard extends LitElement implements LovelaceCard { "ui.panel.lovelace.cards.safe-mode.description" )} -
- - - ${this.hass!.localize( - "ui.panel.lovelace.cards.safe-mode.show_errors" - )} - - -
+ `; } @@ -56,8 +48,9 @@ export class HuiSafeModeCard extends LitElement implements LovelaceCard { ha-card { --ha-card-header-color: var(--primary-color); } - .card-actions a { - text-decoration: none; + error-log-card { + display: block; + padding-bottom: 16px; } `; } diff --git a/src/translations/en.json b/src/translations/en.json index c4fca8b1c8..d9fb1eff4b 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -1885,8 +1885,7 @@ }, "safe-mode": { "header": "Safe Mode Activated", - "description": "Home Assistant ran into trouble while loading your configuration and is now running in safe mode. Take a look at the error log to see what went wrong.", - "show_errors": "Show errors" + "description": "Home Assistant ran into trouble while loading your configuration and is now running in safe mode. Take a look at the error log to see what went wrong." } }, "unused_entities": {