Allow views to have no selection.

This commit is contained in:
Dermot Duffy
2023-03-07 19:27:08 -08:00
parent 7f1fcf454e
commit 1851a563c0
5 changed files with 32 additions and 7 deletions
+3
View File
@@ -490,6 +490,7 @@ export class FrigateCardTimelineCore extends LitElement {
properties.what === 'background'
? properties.time
: this._timeline.getWindow().end,
select: 'time',
},
);
}
@@ -513,6 +514,7 @@ export class FrigateCardTimelineCore extends LitElement {
{
targetView: 'recording',
targetTime: properties.time,
select: 'time',
},
);
}
@@ -661,6 +663,7 @@ export class FrigateCardTimelineCore extends LitElement {
query,
{
targetView: options?.targetView,
select: 'latest',
},
);
if (!view) {