mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-30 12:46:35 +00:00
Show the entity id that first used the context in logbook
This commit is contained in:
parent
22210b7400
commit
026fc1d2e3
@ -7,6 +7,8 @@ export interface LogbookEntry {
|
|||||||
entity_id?: string;
|
entity_id?: string;
|
||||||
domain: string;
|
domain: string;
|
||||||
context_user_id?: string;
|
context_user_id?: string;
|
||||||
|
context_entity_id?: string;
|
||||||
|
context_entity_id_name?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const DATA_CACHE: {
|
const DATA_CACHE: {
|
||||||
|
@ -118,6 +118,18 @@ class HaLogbook extends LitElement {
|
|||||||
? ` (${item_username})`
|
? ` (${item_username})`
|
||||||
: ``}</span
|
: ``}</span
|
||||||
>
|
>
|
||||||
|
${!item.context_entity_id
|
||||||
|
? ""
|
||||||
|
: html`
|
||||||
|
by
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
@click=${this._entityClicked}
|
||||||
|
.entityId=${item.context_entity_id}
|
||||||
|
class="name"
|
||||||
|
>${item.context_entity_id_name}</a
|
||||||
|
>
|
||||||
|
`}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user