Merge pull request #63 from dermotduffy/wrong-next-prev

Ensure thumbnails show when no next/previous control preference is specified
This commit is contained in:
Dermot Duffy authored and GitHub committed 2021-09-06 19:00:56 -07:00
commit c1f8558406
1 file changed
+3 -1
+3 -1
View File
@@ -737,7 +737,9 @@ export class FrigateCard extends LitElement {
'frigate-media-controls': true, 'frigate-media-controls': true,
previous: previous, previous: previous,
next: !previous, next: !previous,
thumbnails: this.config.controls?.nextprev === "thumbnails", thumbnails: (
!this.config.controls?.nextprev ||
this.config.controls?.nextprev === "thumbnails"),
chevrons: this.config.controls?.nextprev === "chevrons", chevrons: this.config.controls?.nextprev === "chevrons",
button: this.config.controls?.nextprev === "chevrons", button: this.config.controls?.nextprev === "chevrons",
} }