Fallback to supported view even when action
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user