Initial attempt add hiding elements during loading.

This commit is contained in:
Dermot Duffy
2022-08-07 13:20:03 -07:00
parent 561358f43b
commit c19a62d426
9 changed files with 179 additions and 65 deletions
+4 -2
View File
@@ -282,8 +282,8 @@ export class FrigateCardThumbnail extends LitElement {
view: 'timeline',
target: this.target,
childIndex: this.childIndex ?? null,
context: {},
})
.removeContext('timeline')
.dispatchChangeEvent(this);
} else if (recording) {
this.view
@@ -291,7 +291,9 @@ export class FrigateCardThumbnail extends LitElement {
view: 'timeline',
target: null,
childIndex: null,
context: {
})
.mergeInContext({
timeline: {
window: {
start: fromUnixTime(recording.start_time),
end: fromUnixTime(recording.end_time),