Add card-wide action support for timeline.

This commit is contained in:
Dermot Duffy
2022-04-10 15:07:39 -07:00
parent e3ef1a9657
commit e3e7646fea
4 changed files with 16 additions and 0 deletions
+2
View File
@@ -1157,6 +1157,8 @@ export class FrigateCard extends LitElement {
specificActions = this._getConfig().event_viewer.actions;
} else if (this._view?.is('image')) {
specificActions = this._getConfig().image?.actions;
} else if (this._view?.is('timeline')) {
specificActions = this._getConfig().timeline?.actions;
}
return { ...this._getConfig().view.actions, ...specificActions };
}