mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-26 09:49:12 +00:00
Make sure number of available places gets updated when participation
status changes Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
33e51a05ec
commit
33acbca2bc
1 changed files with 2 additions and 0 deletions
|
@ -389,6 +389,7 @@ export default class Event extends EventMixin {
|
|||
event.participantStats.unapproved = event.participantStats.unapproved + 1;
|
||||
} else {
|
||||
event.participantStats.approved = event.participantStats.approved + 1;
|
||||
event.participantStats.participants = event.participantStats.participants + 1;
|
||||
}
|
||||
|
||||
store.writeQuery({ query: FETCH_EVENT, variables: { uuid: this.uuid }, data: { event } });
|
||||
|
@ -459,6 +460,7 @@ export default class Event extends EventMixin {
|
|||
event.participantStats.unapproved = event.participantStats.unapproved - 1;
|
||||
} else {
|
||||
event.participantStats.approved = event.participantStats.approved - 1;
|
||||
event.participantStats.participants = event.participantStats.participants - 1;
|
||||
}
|
||||
store.writeQuery({ query: FETCH_EVENT, variables: { uuid: this.uuid }, data: { event } });
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue