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;
function setLoadingFalse() {
this.loading = false;
}
this.mediator.saveAssignees(this.field) this.mediator.saveAssignees(this.field)
.then(() => { .then(setLoadingFalse.bind(this))
this.loading = false;
})
.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