Fallback to supported view even when action

This commit is contained in:
Felipe Santos
2022-05-24 13:46:29 -03:00
parent cffb570cc8
commit 8c9513a1a1
2 changed files with 20 additions and 13 deletions
+9
View File
@@ -35,6 +35,15 @@ export class View {
this.context = params.context ?? null;
}
/**
* Determines whether a view is supported on non-Frigate cameras.
* @param view The view to determine support for.
* @returns Whether the view is supported by non-Frigate cameras.
*/
public static supportsNonFrigateCameras(view: FrigateCardView): boolean {
return ['timeline', 'image', 'live'].includes(view);
}
/**
* Clone a view.
*/