mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
redirect to resume page after confirm action
This commit is contained in:
parent
31252461c9
commit
ce9070e641
@ -191,8 +191,9 @@ let initPromise = getAccompanyingCourse(id)
|
|||||||
//console.log('## action: confirmAccompanyingCourse');
|
//console.log('## action: confirmAccompanyingCourse');
|
||||||
confirmAccompanyingCourse(id)
|
confirmAccompanyingCourse(id)
|
||||||
.then(response => new Promise((resolve, reject) => {
|
.then(response => new Promise((resolve, reject) => {
|
||||||
|
window.location.replace(`/fr/parcours/${id}`);
|
||||||
|
console.log('fetch resolve');
|
||||||
commit('confirmAccompanyingCourse', response);
|
commit('confirmAccompanyingCourse', response);
|
||||||
console.log('fetch resolve'); // redirection with #top anchor
|
|
||||||
resolve();
|
resolve();
|
||||||
})).catch((error) => { commit('catchError', error) });
|
})).catch((error) => { commit('catchError', error) });
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
|
|
||||||
<h5>
|
<h5>
|
||||||
{{ r.person.firstname ~ ' ' ~ r.person.lastname }}
|
{{ 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>
|
</h5>
|
||||||
<dl class="content-bloc">
|
<dl class="content-bloc">
|
||||||
|
|
||||||
@ -122,7 +122,7 @@
|
|||||||
|
|
||||||
<h5>
|
<h5>
|
||||||
{{ r.thirdParty.name }}
|
{{ r.thirdParty.name }}
|
||||||
<span class="badge badge-pill badge-secondary">{{ 'Tiers' }}</span>
|
<span class="badge badge-pill badge-light">{{ 'Tiers' }}</span>
|
||||||
</h5>
|
</h5>
|
||||||
<dl class="content-bloc">
|
<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") }}
|
<i class="fa fa-fw fa-phone"></i>{{ r.thirdParty.telephone|chill_print_or_message("thirdparty.No_phonenumber") }}
|
||||||
</dd>
|
</dd>
|
||||||
<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>
|
||||||
<dd>
|
<dd>
|
||||||
{% if r.thirdParty.address == null %}
|
{% if r.thirdParty.address == null %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user