redirect to resume page after confirm action

This commit is contained in:
Mathieu Jaumotte 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) });
}

View File

@ -77,7 +77,7 @@
<h5>
{{ r.person.firstname ~ ' ' ~ r.person.lastname }}
<span class="badge badge-pill badge-secondary">{{ 'Usager' }}</span>
<span class="badge badge-pill badge-light">{{ 'Usager' }}</span>
</h5>
<dl class="content-bloc">
@ -122,7 +122,7 @@
<h5>
{{ r.thirdParty.name }}
<span class="badge badge-pill badge-secondary">{{ 'Tiers' }}</span>
<span class="badge badge-pill badge-light">{{ 'Tiers' }}</span>
</h5>
<dl class="content-bloc">
@ -130,7 +130,10 @@
<i class="fa fa-fw fa-phone"></i>{{ r.thirdParty.telephone|chill_print_or_message("thirdparty.No_phonenumber") }}
</dd>
<dd>
<i class="fa fa-fw fa-envelope-o"></i>{{ r.thirdParty.email|chill_print_or_message("thirdparty.No_email") }}
<i class="fa fa-fw fa-envelope-o"></i>
<a href="{{ 'mailto:' ~ r.thirdParty.email }}">
{{ r.thirdParty.email|chill_print_or_message("thirdparty.No_email") }}
</a>
</dd>
<dd>
{% if r.thirdParty.address == null %}