Merge branch 'bug/make-sure-event-meta-is-reactive' into 'master'
Bug/make sure event meta is reactive Closes #211 See merge request framasoft/mobilizon!260
This commit is contained in:
commit
717ef84ab8
|
@ -389,6 +389,7 @@ export default class Event extends EventMixin {
|
||||||
event.participantStats.unapproved = event.participantStats.unapproved + 1;
|
event.participantStats.unapproved = event.participantStats.unapproved + 1;
|
||||||
} else {
|
} else {
|
||||||
event.participantStats.approved = event.participantStats.approved + 1;
|
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 } });
|
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;
|
event.participantStats.unapproved = event.participantStats.unapproved - 1;
|
||||||
} else {
|
} else {
|
||||||
event.participantStats.approved = event.participantStats.approved - 1;
|
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 } });
|
store.writeQuery({ query: FETCH_EVENT, variables: { uuid: this.uuid }, data: { event } });
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue