Retire the '*-specific' views.
This commit is contained in:
@@ -214,8 +214,8 @@ export class FrigateCardGalleryCore extends LitElement {
|
||||
if (this.view) {
|
||||
new View({
|
||||
view: this.view.is('clips')
|
||||
? 'clip-specific'
|
||||
: 'snapshot-specific',
|
||||
? 'clip'
|
||||
: 'snapshot',
|
||||
camera: this.view.camera,
|
||||
target: this.view.target ?? undefined,
|
||||
childIndex: index,
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// TODO Live scrolling nav buttons disappearing
|
||||
// TODO can I do away with clip/snapshot-specific?
|
||||
// TODO Live carousel chevron/icons style
|
||||
// TODO call change-event in viewer
|
||||
// TODO editor for live lazy loading
|
||||
@@ -146,7 +144,7 @@ export class FrigateCardLive extends LitElement {
|
||||
const mediaType = browseMediaParams.mediaType;
|
||||
if (mediaType && this.view && ['snapshots', 'clips'].includes(mediaType)) {
|
||||
new View({
|
||||
view: mediaType === 'clips' ? 'clip-specific' : 'snapshot-specific',
|
||||
view: mediaType === 'clips' ? 'clip' : 'snapshot',
|
||||
camera: this.view.camera,
|
||||
target: ev.detail.target,
|
||||
childIndex: ev.detail.childIndex,
|
||||
|
||||
@@ -445,7 +445,7 @@ export class FrigateCardViewerCarousel extends FrigateCardMediaCarousel {
|
||||
const clipStartTime = BrowseMediaUtil.extractEventStartTime(child);
|
||||
if (clipStartTime && clipStartTime === snapshotStartTime) {
|
||||
return new View({
|
||||
view: 'clip-specific',
|
||||
view: 'clip',
|
||||
camera: this.view.camera,
|
||||
target: clips,
|
||||
childIndex: i,
|
||||
|
||||
Reference in New Issue
Block a user