redirect to resume page after confirm action

This commit is contained in:
2021-05-25 19:09:50 +02:00
parent 31252461c9
commit ce9070e641
2 changed files with 8 additions and 4 deletions

View File

@@ -191,8 +191,9 @@ let initPromise = getAccompanyingCourse(id)
//console.log('## action: confirmAccompanyingCourse');
confirmAccompanyingCourse(id)
.then(response => new Promise((resolve, reject) => {
window.location.replace(`/fr/parcours/${id}`);
console.log('fetch resolve');
commit('confirmAccompanyingCourse', response);
console.log('fetch resolve'); // redirection with #top anchor
resolve();
})).catch((error) => { commit('catchError', error) });
}