mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-22 07:52:43 +00:00
Fix event editing joinMode
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
a5822d179c
commit
68d3315999
1 changed files with 6 additions and 5 deletions
|
@ -584,8 +584,6 @@ export default class EditEvent extends Vue {
|
|||
|
||||
EventVisibility = EventVisibility;
|
||||
|
||||
needsApproval = false;
|
||||
|
||||
canPromote = true;
|
||||
|
||||
limitedPlaces = false;
|
||||
|
@ -949,9 +947,12 @@ export default class EditEvent extends Vue {
|
|||
}
|
||||
}
|
||||
|
||||
@Watch("needsApproval")
|
||||
updateEventJoinOptions(needsApproval: boolean): void {
|
||||
if (needsApproval === true) {
|
||||
get needsApproval(): boolean {
|
||||
return this.event?.joinOptions == EventJoinOptions.RESTRICTED;
|
||||
}
|
||||
|
||||
set needsApproval(value: boolean) {
|
||||
if (value === true) {
|
||||
this.event.joinOptions = EventJoinOptions.RESTRICTED;
|
||||
} else {
|
||||
this.event.joinOptions = EventJoinOptions.FREE;
|
||||
|
|
Loading…
Reference in a new issue