diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-11-19 01:34:33 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-11-19 01:34:33 +0100 |
commit | 215bbfb82465a6cddb286feb5168c2a15475bbea (patch) | |
tree | bf02b624cdc05d7d2a4b351e842987f7e6252f48 /static | |
parent | Parse RRULE:s. (diff) | |
download | calp-215bbfb82465a6cddb286feb5168c2a15475bbea.tar.gz calp-215bbfb82465a6cddb286feb5168c2a15475bbea.tar.xz |
vevent-dl formats rrules.
Diffstat (limited to 'static')
-rw-r--r-- | static/components/vevent-dl.ts | 4 |
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 })) } |