Fixed coach disassociation not giving visual result in front end

This commit is contained in:
PMKuipers 2024-08-08 12:22:34 +02:00
parent 53be9d3cce
commit 8299d4c9d1
3 changed files with 8 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1036,7 +1036,9 @@ export default {
}, },
coachDisassociate() { coachDisassociate() {
const self = this; const self = this;
const associated = self.association.coaches;
const associatedselected = self.selected.associated.coaches; const associatedselected = self.selected.associated.coaches;
const search = self.search.coaches;
for (const i in associatedselected) { for (const i in associatedselected) {
const r = associatedselected[i]; const r = associatedselected[i];
@ -1046,7 +1048,10 @@ export default {
'studyplan_id': self.value.id, 'studyplan_id': self.value.id,
'user_id': r, 'user_id': r,
} }
}])[0].then(() => { }])[0].then((response) => {
if (response.success) {
transportItem(search, associated, r);
}
return; return;
}).catch(notification.exception); }).catch(notification.exception);
} }