Commit 65bda449 authored by Toon Claes's avatar Toon Claes

Port changes from CE to EE

parent c3546b8c
...@@ -33,12 +33,14 @@ export default { ...@@ -33,12 +33,14 @@ export default {
saveAssignees() { saveAssignees() {
this.loading = true; this.loading = true;
this.mediator.saveAssignees(this.field) function setLoadingFalse() {
.then(() => {
this.loading = false; this.loading = false;
}) }
this.mediator.saveAssignees(this.field)
.then(setLoadingFalse.bind(this))
.catch(() => { .catch(() => {
this.loading = false; setLoadingFalse();
return new Flash('Error occurred when saving assignees'); return new Flash('Error occurred when saving assignees');
}); });
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment