mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-01 13:37:47 +00:00
Add error logs to safe mode card (#5452)
* Add error logs to safe mode card * Remove actions
This commit is contained in:
parent
e8a7671c25
commit
71ba192c38
@ -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"
|
||||
)}
|
||||
</div>
|
||||
<div class="card-actions">
|
||||
<a href="/developer-tools/logs">
|
||||
<mwc-button>
|
||||
${this.hass!.localize(
|
||||
"ui.panel.lovelace.cards.safe-mode.show_errors"
|
||||
)}
|
||||
</mwc-button>
|
||||
</a>
|
||||
</div>
|
||||
<error-log-card .hass=${this.hass}></error-log-card>
|
||||
</ha-card>
|
||||
`;
|
||||
}
|
||||
@ -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;
|
||||
}
|
||||
`;
|
||||
}
|
||||
|
@ -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": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user