Skip to content
Snippets Groups Projects
Commit c1997c36 authored by permcu's avatar permcu
Browse files

Do not show until if not available in AvailabilityEventList

It was shown as the beginning of the epoch.
parent 55bd52aa
No related branches found
No related tags found
2 merge requests!1797Resolve "Free/Busy overview",!1330Resolve "Add frontend for Free/Busy model"
Pipeline #197831 failed
......@@ -166,13 +166,16 @@ export default {
rRuleToText(rfcString) {
if (rfcString) {
const rRule = RRule.fromString(rfcString);
return `${
this.rruleFrequencies.find((r) => r.freq === rRule.options.interval)
.text
}, ${this.$t("availability_events.recurrences.until")} ${this.$d(
rRule.options.until,
"short",
)}`;
let recurrence = this.rruleFrequencies.find(
(r) => r.freq === rRule.options.interval,
).text;
if (rRule.options.until) {
recurrence += `, ${this.$t("availability_events.recurrences.until")} ${this.$d(
rRule.options.until,
"short",
)}`;
}
return recurrence;
}
return this.$t("availability_events.recurrences.none");
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment