mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 05:57:54 +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 "@material/mwc-button";
|
||||||
|
|
||||||
import "../../../components/ha-card";
|
import "../../../components/ha-card";
|
||||||
|
import "../../../panels/developer-tools/logs/error-log-card";
|
||||||
import { LovelaceCard } from "../types";
|
import { LovelaceCard } from "../types";
|
||||||
import { HomeAssistant } from "../../../types";
|
import { HomeAssistant } from "../../../types";
|
||||||
|
|
||||||
@ -38,15 +38,7 @@ export class HuiSafeModeCard extends LitElement implements LovelaceCard {
|
|||||||
"ui.panel.lovelace.cards.safe-mode.description"
|
"ui.panel.lovelace.cards.safe-mode.description"
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div class="card-actions">
|
<error-log-card .hass=${this.hass}></error-log-card>
|
||||||
<a href="/developer-tools/logs">
|
|
||||||
<mwc-button>
|
|
||||||
${this.hass!.localize(
|
|
||||||
"ui.panel.lovelace.cards.safe-mode.show_errors"
|
|
||||||
)}
|
|
||||||
</mwc-button>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</ha-card>
|
</ha-card>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
@ -56,8 +48,9 @@ export class HuiSafeModeCard extends LitElement implements LovelaceCard {
|
|||||||
ha-card {
|
ha-card {
|
||||||
--ha-card-header-color: var(--primary-color);
|
--ha-card-header-color: var(--primary-color);
|
||||||
}
|
}
|
||||||
.card-actions a {
|
error-log-card {
|
||||||
text-decoration: none;
|
display: block;
|
||||||
|
padding-bottom: 16px;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -1885,8 +1885,7 @@
|
|||||||
},
|
},
|
||||||
"safe-mode": {
|
"safe-mode": {
|
||||||
"header": "Safe Mode Activated",
|
"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.",
|
"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"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"unused_entities": {
|
"unused_entities": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user