Don't show thumbnails carousel by default.

This commit is contained in:
Dermot Duffy
2021-11-26 19:24:43 -08:00
parent d9949494ec
commit ee87a39162
2 changed files with 33 additions and 34 deletions
+3 -5
View File
@@ -34,7 +34,6 @@ import liveFrigateStyle from '../scss/live-frigate.scss';
import liveJSMPEGStyle from '../scss/live-jsmpeg.scss';
import liveWebRTCStyle from '../scss/live-webrtc.scss';
// Number of seconds a signed URL is valid for.
const URL_SIGN_EXPIRY_SECONDS = 24 * 60 * 60;
@@ -104,10 +103,9 @@ export class FrigateCardLive extends LitElement {
return dispatchErrorMessageEvent(this, (e as Error).message);
}
if (BrowseMediaUtil.getFirstTrueMediaChildIndex(parent) != null) {
if (BrowseMediaUtil.getFirstTrueMediaChildIndex(parent) != null) {
return html` <frigate-card-thumbnail-carousel
.hass=${this.hass}
.browseMediaQueryParameters=${this.browseMediaQueryParameters}
.target=${parent}
.config=${this.config?.live.controls.thumbnails}
.highlightSelected=${false}
@frigate-card:carousel:tap=${(ev: CustomEvent<ThumbnailCarouselTap>) => {
@@ -123,7 +121,7 @@ export class FrigateCardLive extends LitElement {
>
</frigate-card-thumbnail-carousel>`;
}
}
};
return html`${until(fetchThumbnailsThenRender(), renderProgressIndicator())}`;
}