Add error logs to safe mode card (#5452)

* Add error logs to safe mode card

* Remove actions
This commit is contained in:
Bram Kragten 2020-04-06 16:08:35 +02:00 committed by GitHub
parent e8a7671c25
commit 71ba192c38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 14 deletions

View File

@ -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;
}
`;
}

View File

@ -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": {