Retire the '*-specific' views.

This commit is contained in:
Dermot Duffy
2022-01-14 21:31:16 -08:00
parent faeb4a4a7e
commit 6e2786c7b5
5 changed files with 9 additions and 18 deletions
+3 -3
View File
@@ -82,7 +82,7 @@ export class View {
* Determine if a view is for the media viewer.
*/
public isViewerView(): boolean {
return ['clip', 'clip-specific', 'snapshot', 'snapshot-specific'].includes(
return ['clip', 'snapshot'].includes(
this.view,
);
}
@@ -91,14 +91,14 @@ export class View {
* Determine if a view is related to a clip or clips.
*/
public isClipRelatedView(): boolean {
return ['clip', 'clips', 'clip-specific'].includes(this.view);
return ['clip', 'clips'].includes(this.view);
}
/**
* Determine if a view is related to a snapshot or snapshots.
*/
public isSnapshotRelatedView(): boolean {
return ['snapshot', 'snapshots', 'snapshot-specific'].includes(this.view);
return ['snapshot', 'snapshots'].includes(this.view);
}
/**