Do not require all title popup options be specified.
This commit is contained in:
1 parent
6bba16cb86
commit
913355ad1d
3 files changed
+36
-11
No files matched your search
@@ -64,7 +64,14 @@ export class FrigateCardTitleControl extends LitElement {
|
||||
protected _toastRef: Ref<PaperToast> = createRef();
|
||||
|
||||
protected render(): TemplateResult {
|
||||
if (!this.text || !this.config || this.config.mode == 'none' || !this.fitInto) {
|
||||
if (
|
||||
!this.text ||
|
||||
!this.config ||
|
||||
!this.config.mode ||
|
||||
this.config.duration_seconds === undefined ||
|
||||
this.config.mode === 'none' ||
|
||||
!this.fitInto
|
||||
) {
|
||||
return html``;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user