Clean up message content.

This commit is contained in:
Dermot Duffy
2023-10-05 21:36:53 -07:00
parent d895c43e67
commit 63d90a8eb5
2 changed files with 7 additions and 4 deletions
+6 -3
View File
@@ -949,9 +949,12 @@ export class FrigateCardLiveProvider
// receiving frames). Otherwise a single temporarily unavailable camera // receiving frames). Otherwise a single temporarily unavailable camera
// would render a whole carousel inoperable. // would render a whole carousel inoperable.
return renderMessage({ return renderMessage({
message: localize('error.live_camera_unavailable'), message: `${localize('error.live_camera_unavailable')}${
type: 'error', this.label ? `: ${this.label}` : ''
context: this.cameraConfig, }`,
type: 'info',
icon: 'mdi:cctv-off',
dotdotdot: true,
}); });
} }
} }
+1 -1
View File
@@ -67,7 +67,7 @@ export class FrigateCardErrorMessage extends LitElement {
return html` <frigate-card-message return html` <frigate-card-message
.message=${html` ${this.message.message}. .message=${html` ${this.message.message}.
<a href="${TROUBLESHOOTING_URL}"> ${localize('error.troubleshooting')}</a>.`} <a href="${TROUBLESHOOTING_URL}"> ${localize('error.troubleshooting')}</a>.`}
.icon=${'mdi:alert-circle'} .icon=${this.message.icon ?? 'mdi:alert-circle'}
.context=${this.message.context} .context=${this.message.context}
.dotdotdot=${this.message.dotdotdot} .dotdotdot=${this.message.dotdotdot}
> >