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

Port changes from CE to EE

parent c3546b8c
......@@ -33,12 +33,14 @@ export default {
saveAssignees() {
this.loading = true;
this.mediator.saveAssignees(this.field)
.then(() => {
function setLoadingFalse() {
this.loading = false;
})
}
this.mediator.saveAssignees(this.field)
.then(setLoadingFalse.bind(this))
.catch(() => {
this.loading = false;
setLoadingFalse();
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