Fix event editing joinMode
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
a5822d179c
commit
68d3315999
@ -584,8 +584,6 @@ export default class EditEvent extends Vue {
|
|||||||
|
|
||||||
EventVisibility = EventVisibility;
|
EventVisibility = EventVisibility;
|
||||||
|
|
||||||
needsApproval = false;
|
|
||||||
|
|
||||||
canPromote = true;
|
canPromote = true;
|
||||||
|
|
||||||
limitedPlaces = false;
|
limitedPlaces = false;
|
||||||
@ -949,9 +947,12 @@ export default class EditEvent extends Vue {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Watch("needsApproval")
|
get needsApproval(): boolean {
|
||||||
updateEventJoinOptions(needsApproval: boolean): void {
|
return this.event?.joinOptions == EventJoinOptions.RESTRICTED;
|
||||||
if (needsApproval === true) {
|
}
|
||||||
|
|
||||||
|
set needsApproval(value: boolean) {
|
||||||
|
if (value === true) {
|
||||||
this.event.joinOptions = EventJoinOptions.RESTRICTED;
|
this.event.joinOptions = EventJoinOptions.RESTRICTED;
|
||||||
} else {
|
} else {
|
||||||
this.event.joinOptions = EventJoinOptions.FREE;
|
this.event.joinOptions = EventJoinOptions.FREE;
|
||||||
|
Loading…
Reference in New Issue
Block a user