Don't need to use clickAllowed anymore.

This commit is contained in:
Dermot Duffy
2023-02-18 14:36:39 -08:00
parent 633a4cbdf8
commit c4db626ee1
3 changed files with 4 additions and 23 deletions
+1 -6
View File
@@ -681,12 +681,7 @@ export class FrigateCardViewerCarousel extends LitElement {
)}
title="${media.getTitle() ?? ''}"
@click=${() => {
if (
this._refMediaCarousel.value
?.frigateCardCarousel()
?.carouselClickAllowed() &&
this.viewerConfig?.snapshot_click_plays_clip
) {
if (this.viewerConfig?.snapshot_click_plays_clip) {
this._dispatchRelatedClipView(index);
}
}}