Recalculate grid for a slot change.

This commit is contained in:
Dermot Duffy
2023-08-19 12:28:11 -07:00
parent 5364c828eb
commit 17bfe4f38b
10 changed files with 179 additions and 48 deletions
+4
View File
@@ -1,5 +1,8 @@
// TODO: Video scanning not select other camera?
// TODO: Drag from live results in different cameras being shown in timeline in media viewer?
// TODO: It's possible to get a single entry in the grid, rendered without the
// grid (correctly), but still with isGrid so the menu button still shows the
// take it out of grid mode option.
import {
CSSResultGroup,
@@ -43,6 +46,7 @@ export class FrigateCardMediaGrid extends LitElement {
if (!this._controller && this._refSlot.value) {
this._controller = new MediaGridController(this._refSlot.value, {
selected: this.selected,
displayConfig: this.displayConfig,
});
}