mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
Add top level logbook entries tab (#8776)
This commit is contained in:
parent
d8153ac8fc
commit
9b947ef734
@ -66,8 +66,11 @@ export class HaAutomationTrace extends LitElement {
|
|||||||
|
|
||||||
@internalProperty() private _logbookEntries?: LogbookEntry[];
|
@internalProperty() private _logbookEntries?: LogbookEntry[];
|
||||||
|
|
||||||
@internalProperty() private _view: "details" | "config" | "timeline" =
|
@internalProperty() private _view:
|
||||||
"details";
|
| "details"
|
||||||
|
| "config"
|
||||||
|
| "timeline"
|
||||||
|
| "logbook" = "details";
|
||||||
|
|
||||||
protected render(): TemplateResult {
|
protected render(): TemplateResult {
|
||||||
const stateObj = this._entityId
|
const stateObj = this._entityId
|
||||||
@ -181,6 +184,7 @@ export class HaAutomationTrace extends LitElement {
|
|||||||
${[
|
${[
|
||||||
["details", "Step Details"],
|
["details", "Step Details"],
|
||||||
["timeline", "Trace Timeline"],
|
["timeline", "Trace Timeline"],
|
||||||
|
["logbook", "Related logbook entries"],
|
||||||
["config", "Automation Config"],
|
["config", "Automation Config"],
|
||||||
].map(
|
].map(
|
||||||
([view, label]) => html`
|
([view, label]) => html`
|
||||||
@ -216,6 +220,13 @@ export class HaAutomationTrace extends LitElement {
|
|||||||
.trace=${this._trace}
|
.trace=${this._trace}
|
||||||
></ha-automation-trace-config>
|
></ha-automation-trace-config>
|
||||||
`
|
`
|
||||||
|
: this._view === "logbook"
|
||||||
|
? html`
|
||||||
|
<ha-logbook
|
||||||
|
.hass=${this.hass}
|
||||||
|
.entries=${this._logbookEntries}
|
||||||
|
></ha-logbook>
|
||||||
|
`
|
||||||
: html`
|
: html`
|
||||||
<ha-automation-trace-timeline
|
<ha-automation-trace-timeline
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user