fix: Expose gallery and media views as media type agnostic (#2335)
This commit is contained in:
+8
-3
@@ -127,9 +127,14 @@ export class View {
|
||||
* Determine if a view is a gallery.
|
||||
*/
|
||||
public isGalleryView(): boolean {
|
||||
return ['clips', 'folders', 'snapshots', 'recordings', 'reviews'].includes(
|
||||
this.view,
|
||||
);
|
||||
return [
|
||||
'clips',
|
||||
'folders',
|
||||
'gallery',
|
||||
'snapshots',
|
||||
'recordings',
|
||||
'reviews',
|
||||
].includes(this.view);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user