Fall back to live if the user changes view from recordings.
This commit is contained in:
+3
-2
@@ -1306,10 +1306,11 @@ export class FrigateCard extends LitElement {
|
||||
case 'camera_select':
|
||||
const camera = frigateCardAction.camera;
|
||||
if (this._cameras?.has(camera) && this._view) {
|
||||
const targetView =
|
||||
const targetView = View.selectBestViewForUserSpecified(
|
||||
this._getConfig().view.camera_select === 'current'
|
||||
? this._view.view
|
||||
: (this._getConfig().view.camera_select as FrigateCardView);
|
||||
: (this._getConfig().view.camera_select as FrigateCardView),
|
||||
);
|
||||
this._changeView({
|
||||
view: new View({
|
||||
view: this._cameras?.get(camera)?.frigate.camera_name
|
||||
|
||||
Reference in New Issue
Block a user