Tweak retain_definitely to work wide the newer thumbnails.
This commit is contained in:
@@ -13,6 +13,7 @@ import {
|
||||
} from '../types.js';
|
||||
import { BrowseMediaUtil } from '../browse-media-util.js';
|
||||
import { View } from '../view.js';
|
||||
import { localize } from '../localize/localize.js';
|
||||
import { renderProgressIndicator } from './message.js';
|
||||
import { stopEventFromActivatingCardWideActions } from '../common.js';
|
||||
|
||||
@@ -221,6 +222,7 @@ export class FrigateCardGalleryCore extends LitElement {
|
||||
/>${child.frigate?.event?.retain_indefinitely ? html`<ha-icon
|
||||
class="favorite"
|
||||
icon="mdi:star"
|
||||
title=${localize('event.retain_indefinitely')}
|
||||
/>` : ``}`
|
||||
: ``}
|
||||
</div>
|
||||
|
||||
@@ -38,7 +38,11 @@ export class FrigateCardThumbnail extends FrigateCardCarousel {
|
||||
title="${this.media.title}"
|
||||
/>
|
||||
${event?.retain_indefinitely
|
||||
? html` <ha-icon class="favorite" icon="mdi:star" />`
|
||||
? html` <ha-icon
|
||||
class="favorite"
|
||||
icon="mdi:star"
|
||||
title=${localize('event.retain_indefinitely')}
|
||||
/>`
|
||||
: ``}
|
||||
${this.details && event
|
||||
? html` <div class="details">
|
||||
|
||||
Reference in New Issue
Block a user