summaryrefslogtreecommitdiff
path: root/public/js/modules/event-edit.js
diff options
context:
space:
mode:
authorRaphael Kabo <raphaelkabo@hey.com>2023-10-09 19:22:39 +0100
committerRaphael Kabo <raphaelkabo@hey.com>2023-10-09 19:22:39 +0100
commit7fe1f42d56edb98875399b1da5e9b7e972209a0d (patch)
tree6f96696b583e4fab1a2d1f54a2f99bcee3267c04 /public/js/modules/event-edit.js
parentdbbb94117c2d6266cfc45a091b4b87012024f788 (diff)
Add known group linker to event form
Diffstat (limited to 'public/js/modules/event-edit.js')
-rw-r--r--public/js/modules/event-edit.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/public/js/modules/event-edit.js b/public/js/modules/event-edit.js
index 65d9889..0a295cb 100644
--- a/public/js/modules/event-edit.js
+++ b/public/js/modules/event-edit.js
@@ -47,6 +47,13 @@ function editEventForm() {
this.data.timezone = event.target.value;
});
this.data.timezone = this.select2.val();
+
+ // Set checkboxes
+ this.data.eventGroupCheckbox = window.eventData.eventGroupID !== "";
+ this.data.interactionCheckbox = window.eventData.usersCanComment;
+ this.data.joinCheckbox = window.eventData.usersCanAttend;
+ this.data.maxAttendeesCheckbox =
+ window.eventData.maxAttendees !== null;
},
async submitForm() {
this.submitting = true;