aboutsummaryrefslogtreecommitdiff
path: root/static/event-creator.ts
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-11-15 01:32:29 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-11-15 01:32:29 +0100
commitec9f95e5929ad7fd86909002b851e3fa71d2a46b (patch)
tree11174666b7166465efd714625199cf182c8c85a4 /static/event-creator.ts
parentReorder some popup setup. (diff)
downloadcalp-ec9f95e5929ad7fd86909002b851e3fa71d2a46b.tar.gz
calp-ec9f95e5929ad7fd86909002b851e3fa71d2a46b.tar.xz
Fix calendar for popup.
Diffstat (limited to 'static/event-creator.ts')
-rw-r--r--static/event-creator.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/static/event-creator.ts b/static/event-creator.ts
index cf3468ce..74ba4235 100644
--- a/static/event-creator.ts
+++ b/static/event-creator.ts
@@ -67,9 +67,11 @@ class EventCreator {
that.ev = new VEvent();
that.ev.setProperty('summary', 'Created Event');
that.ev.setProperty('uid', uuid())
+ that.ev.calendar = btoa('Calendar');
// let ev_block = document.createElement('vevent-block') as ComponentBlock;
let ev_block = new ComponentBlock(that.ev.getProperty('uid'));
+ ev_block.classList.add('generated');
that.event = ev_block;
that.ev.register(ev_block);