Add support for both snapshots/clips in timeline.

This commit is contained in:
Dermot Duffy
2022-04-04 21:25:12 -07:00
parent f98d749d07
commit 9c372815f2
10 changed files with 212 additions and 157 deletions
+3 -4
View File
@@ -83,22 +83,21 @@ export class View {
* Determine if a view is of a piece of media (i.e. not the gallery).
*/
public isMediaView(): boolean {
return !this.isGalleryView();
return this.isViewerView() || this.is('live');
}
/**
* Determine if a view is for the media viewer.
*/
public isViewerView(): boolean {
return ['clip', 'snapshot'].includes(this.view);
return ['clip', 'snapshot', 'event'].includes(this.view);
}
/**
* Determine if a view is related to a clip or clips.
*/
public isClipRelatedView(): boolean {
// TODO HACK HACK HACK
return ['clip', 'clips', 'timeline'].includes(this.view);
return ['clip', 'clips'].includes(this.view);
}
/**