Add CSS performance controls.

This commit is contained in:
Dermot Duffy
2022-10-06 20:58:14 -07:00
parent 65cf4cf22d
commit 535069d68e
12 changed files with 66 additions and 15 deletions
+5 -1
View File
@@ -102,7 +102,7 @@ import { View } from './view.js';
import pkg from '../package.json';
import { ViewContext } from 'view';
import { DataManager } from './utils/data-manager.js';
import { setLowPerformanceProfile } from './performance.js';
import { setLowPerformanceProfile, setPerformanceCSSStyles } from './performance.js';
/** A note on media callbacks:
*
@@ -1097,6 +1097,10 @@ export class FrigateCard extends LitElement {
if (this._cameras && (changedProps.has('_config') || changedProps.has('_cameras'))) {
this._dataManager = new DataManager(this._cameras);
}
if (changedProps.has('_cardWideConfig')) {
setPerformanceCSSStyles(this, this._cardWideConfig?.performance);
}
}
/**