fix: Expose gallery and media views as media type agnostic (#2335)

This commit is contained in:
Dermot Duffy
2026-02-08 08:04:11 -08:00
committed by GitHub
parent 0a099b95f7
commit 21f9469784
22 changed files with 363 additions and 238 deletions
+3 -2
View File
@@ -18,7 +18,6 @@ export const getCameraIDsForViewName = (
switch (viewName) {
case 'diagnostics':
case 'image':
case 'media':
return cameraManager.getStore().getCameraIDs();
case 'folder':
@@ -51,11 +50,13 @@ export const getCameraIDsForViewName = (
? cameraManager.getStore().getAllDependentCameras(cameraID, capability, options)
: cameraManager.getStore().getCameraIDsWithCapability(capability, options);
case 'gallery':
case 'media':
case 'timeline':
return folder
? cameraManager.getStore().getCameraIDs()
: cameraManager.getStore().getCameraIDsWithCapability({
anyCapabilities: ['clips', 'snapshots', 'recordings'],
anyCapabilities: ['clips', 'snapshots', 'recordings', 'reviews'],
});
}
};