aboutsummaryrefslogtreecommitdiff
path: root/static/components
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/components
parentReorder some popup setup. (diff)
downloadcalp-ec9f95e5929ad7fd86909002b851e3fa71d2a46b.tar.gz
calp-ec9f95e5929ad7fd86909002b851e3fa71d2a46b.tar.xz
Fix calendar for popup.
Diffstat (limited to 'static/components')
-rw-r--r--static/components/popup-element.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/static/components/popup-element.ts b/static/components/popup-element.ts
index bad7476a..2f019f4d 100644
--- a/static/components/popup-element.ts
+++ b/static/components/popup-element.ts
@@ -4,6 +4,7 @@ import { gensym } from '../lib'
import { VEvent } from '../vevent'
import { bind_popup_control } from '../dragable'
import { close_popup, event_from_popup } from '../popup'
+import { vcal_objects } from '../globals'
import { ComponentVEvent } from './vevent'
import { TabElement } from './tab-element'
@@ -23,12 +24,14 @@ class PopupElement extends ComponentVEvent {
this.tabgroup_id = gensym();
this.tabcount = 0
+
+ let obj = vcal_objects.get(this.uid);
+ if (obj && obj.calendar) {
+ this.dataset.calendar = obj.calendar;
+ }
}
redraw(data: VEvent) {
- // console.warn('IMPLEMENT ME');
-
- console.log('popup', data.calendar);
if (data.calendar) {
this.dataset.calendar = data.calendar;
}