Add sub_label support.
This commit is contained in:
@@ -167,11 +167,13 @@ export class FrigateCardThumbnailDetailsEvent extends LitElement {
|
||||
const endTime = this.media.getEndTime();
|
||||
const what = this.media.getWhat();
|
||||
const where = this.media.getWhere();
|
||||
const tags = this.media.getTags();
|
||||
|
||||
return html`
|
||||
${what
|
||||
? html` <div class="title" title=${localize('event.what')}>
|
||||
${prettifyTitle(what.join(', '))}
|
||||
${prettifyTitle(what.join(', ')) +
|
||||
(tags ? ': ' + prettifyTitle(tags.join(', ')) : '')}
|
||||
${score ? html`(${(score * 100).toFixed(2) + '%'})` : ''}
|
||||
</div>`
|
||||
: ``}
|
||||
@@ -200,6 +202,12 @@ export class FrigateCardThumbnailDetailsEvent extends LitElement {
|
||||
${prettifyTitle(where.join(', '))}
|
||||
</div>`
|
||||
: html``}
|
||||
${tags
|
||||
? html` <div title=${localize('event.tag')}>
|
||||
<ha-icon .icon=${'mdi:tag'}></ha-icon>
|
||||
${prettifyTitle(tags.join(', '))}
|
||||
</div>`
|
||||
: html``}
|
||||
${this.seek
|
||||
? html` <div title=${localize('event.seek')}>
|
||||
<ha-icon .icon=${'mdi:clock-fast'}></ha-icon>
|
||||
|
||||
Reference in New Issue
Block a user