summaryrefslogtreecommitdiff
path: root/public/js/modules/new.js
diff options
context:
space:
mode:
authorRaphael Kabo <raphaelkabo@hey.com>2024-02-25 21:34:33 +0000
committerRaphael Kabo <raphaelkabo@hey.com>2024-02-26 00:11:03 +0000
commitb3c9cba6478dc16d135313aa6d0adcc02d67ece6 (patch)
tree508ef236dc805b950fedeeca7f8dd3559d66a162 /public/js/modules/new.js
parentafd9fc4477fff90e5db917f350d99c3d01fba2bd (diff)
feat: optional public events/groups
Diffstat (limited to 'public/js/modules/new.js')
-rw-r--r--public/js/modules/new.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/public/js/modules/new.js b/public/js/modules/new.js
index a018087..f7c3e34 100644
--- a/public/js/modules/new.js
+++ b/public/js/modules/new.js
@@ -87,6 +87,7 @@ function newEventForm() {
creatorEmail: "",
eventGroupID: "",
eventGroupEditToken: "",
+ publicCheckbox: false,
interactionCheckbox: false,
joinCheckbox: false,
maxAttendeesCheckbox: false,
@@ -107,6 +108,7 @@ function newEventForm() {
this.data.interactionCheckbox = false;
this.data.joinCheckbox = false;
this.data.maxAttendeesCheckbox = false;
+ this.data.publicCheckbox = false;
},
async submitForm() {
this.submitting = true;
@@ -160,6 +162,11 @@ function newEventGroupForm() {
eventGroupURL: "",
hostName: "",
creatorEmail: "",
+ publicCheckbox: false,
+ },
+ init() {
+ // Reset checkboxes
+ this.data.publicCheckbox = false;
},
errors: [],
submitting: false,