This commit is contained in:
Bram Kragten 2022-12-05 14:31:44 +01:00
parent f18997c7c3
commit 4fcfcbeefb
No known key found for this signature in database
GPG Key ID: FBE2DFDB363EF55B

View File

@ -130,12 +130,13 @@ class DialogCalendarEventDetail extends LitElement {
private _renderRruleAsText(value: string) { private _renderRruleAsText(value: string) {
// TODO: Make sure this handles translations // TODO: Make sure this handles translations
if (!value) {
return "";
}
try { try {
const readableText = return html`<div id="text">
value === "" ${capitalizeFirstLetter(RRule.fromString(`RRULE:${value}`).toText())}
? "" </div>`;
: capitalizeFirstLetter(RRule.fromString(`RRULE:${value}`).toText());
return html`<div id="text">${readableText}</div>`;
} catch (e) { } catch (e) {
return ""; return "";
} }