From 3d799d6fa64f39ba79fcaa83acf9ed63eb59b5c4 Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Mon, 6 Feb 2023 20:35:56 -0800 Subject: [PATCH] Fix minor timeline bug for recordings. --- src/components/timeline-core.ts | 2 +- src/view/view.ts | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/timeline-core.ts b/src/components/timeline-core.ts index 3e75ae9e..ed584496 100644 --- a/src/components/timeline-core.ts +++ b/src/components/timeline-core.ts @@ -706,7 +706,7 @@ export class FrigateCardTimelineCore extends LitElement { protected _getPerfectWindowFromMedia(media: ViewMedia): TimelineWindow | null { const startTime = media.getStartTime(); - const endTime = media.getStartTime(); + const endTime = media.getEndTime(); if (ViewMediaClassifier.isEvent(media)) { const windowSeconds = this._getConfiguredWindowSeconds(); diff --git a/src/view/view.ts b/src/view/view.ts index d6896995..2dc4705f 100644 --- a/src/view/view.ts +++ b/src/view/view.ts @@ -1,6 +1,3 @@ -// Gallery: -// - TODO: View a recording from the gallery => timeline should span the hour. - import { ViewContext } from 'view'; import { FrigateCardUserSpecifiedView,