Minor codereview fixes.

This commit is contained in:
Dermot Duffy
2022-09-25 18:14:36 -07:00
parent 046313eb47
commit ac35a5ff23
2 changed files with 6 additions and 8 deletions
+5 -7
View File
@@ -730,8 +730,10 @@ export class FrigateCardTimelineCore extends LitElement {
})
.mergeInContext(context)
.dispatchChangeEvent(this);
dispatchFrigateCardEvent(this, 'thumbnails:open');
} else {
if (this.view.is('timeline')) {
dispatchFrigateCardEvent(this, 'thumbnails:open');
}
} else if (this.view.is('timeline')) {
dispatchFrigateCardEvent(this, 'thumbnails:close');
}
}
@@ -966,7 +968,7 @@ export class FrigateCardTimelineCore extends LitElement {
}
/**
* Handle timeline resize.
* Get timeline options.
*/
protected _getOptions(): TimelineOptions | null {
if (!this.timelineConfig) {
@@ -1287,10 +1289,6 @@ export class FrigateCardTimelineCore extends LitElement {
...(window && { window: window }),
};
this._ignoreClick = false;
// if (ev.what && ['background', 'axis'].includes(ev.what)) {
// this._setTargetBarAppropriately(ev.time);
// }
});
this._timeline.on('mouseUp', () => {
this._pointerHeld = null;