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
// would render a whole carousel inoperable.
return renderMessage({
message: localize('error.live_camera_unavailable'),
type: 'error',
context: this.cameraConfig,
message: `${localize('error.live_camera_unavailable')}${
this.label ? `: ${this.label}` : ''
}`,
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
.message=${html` ${this.message.message}.
<a href="${TROUBLESHOOTING_URL}"> ${localize('error.troubleshooting')}</a>.`}
.icon=${'mdi:alert-circle'}
.icon=${this.message.icon ?? 'mdi:alert-circle'}
.context=${this.message.context}
.dotdotdot=${this.message.dotdotdot}
>