feat: Add folder view to view folder media (#2077)

- Closes: #2068

Note: Renames existing `folder` view to `folders` [experimental
functionality]
This commit is contained in:
Dermot Duffy
2025-05-31 17:13:39 -07:00
committed by GitHub
parent 1901475065
commit 956a2e523c
30 changed files with 246 additions and 132 deletions
+6 -2
View File
@@ -126,7 +126,7 @@ export class View {
* Determine if a view is a media gallery.
*/
public isMediaGalleryView(): boolean {
return ['clips', 'folder', 'snapshots', 'recordings'].includes(this.view);
return ['clips', 'folders', 'snapshots', 'recordings'].includes(this.view);
}
/**
@@ -137,11 +137,15 @@ export class View {
return this.isViewerView() || this.is('live') || this.is('image');
}
public isAnyFolderView(): boolean {
return ['folder', 'folders'].includes(this.view);
}
/**
* Determine if a view is for the media viewer.
*/
public isViewerView(): boolean {
return ['media', 'clip', 'snapshot', 'recording'].includes(this.view);
return ['folder', 'media', 'clip', 'snapshot', 'recording'].includes(this.view);
}
public supportsMultipleDisplayModes(): boolean {