Clean up message content.
This commit is contained in:
@@ -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,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user