aboutsummaryrefslogtreecommitdiff
path: root/static/components
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-11-19 01:34:33 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-11-19 01:34:33 +0100
commit215bbfb82465a6cddb286feb5168c2a15475bbea (patch)
treebf02b624cdc05d7d2a4b351e842987f7e6252f48 /static/components
parentParse RRULE:s. (diff)
downloadcalp-215bbfb82465a6cddb286feb5168c2a15475bbea.tar.gz
calp-215bbfb82465a6cddb286feb5168c2a15475bbea.tar.xz
vevent-dl formats rrules.
Diffstat (limited to 'static/components')
-rw-r--r--static/components/vevent-dl.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/static/components/vevent-dl.ts b/static/components/vevent-dl.ts
index 75de075b..dfab8183 100644
--- a/static/components/vevent-dl.ts
+++ b/static/components/vevent-dl.ts
@@ -4,6 +4,8 @@ import { ComponentVEvent } from './vevent'
import { VEvent } from '../vevent'
import { makeElement } from '../lib'
+import { RecurrenceRule } from '../vevent'
+
/* <vevent-dl /> */
class VEventDL extends ComponentVEvent {
redraw(obj: VEvent) {
@@ -24,6 +26,8 @@ function buildDescriptionList(data: [string, any][]): HTMLElement {
val.dateonly
? '~Y-~m-~d'
: '~Y-~m-~dT~H:~M:~S');
+ } else if (val instanceof RecurrenceRule) {
+ fmtVal = JSON.stringify(val.to_jcal())
}
dl.appendChild(makeElement('dd', { innerText: fmtVal }))
}