Fall back to live if the user changes view from recordings.

This commit is contained in:
Dermot Duffy
2022-06-12 09:13:58 -07:00
parent 8cd83087e1
commit 4e53ad16eb
3 changed files with 27 additions and 5 deletions
+3 -2
View File
@@ -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