CourseLocation: add message if no address

This commit is contained in:
Mathieu Jaumotte 2021-08-18 17:45:37 +02:00
parent 9e51717984
commit 9d655d92f2
2 changed files with 8 additions and 0 deletions

View File

@ -10,6 +10,10 @@
{{ error }}
</div>
<div v-if="hasNoLocation" class="chill-no-data-statement">
{{ $t('courselocation.no_address') }}
</div>
<show-address
v-if="accompanyingCourse.location"
:address="accompanyingCourse.location">
@ -96,6 +100,9 @@ export default {
isPersonLocation() {
return this.accompanyingCourse.locationStatus === 'person';
},
hasNoLocation() {
return this.accompanyingCourse.locationStatus === 'none';
},
isContextEdit() {
return this.context.edit;
}

View File

@ -75,6 +75,7 @@ const appMessages = {
sure_description: "Voulez-vous faire de cette adresse l'adresse du parcours ?",
ok: "Désigner comme adresse du parcours",
person_locator: "Parcours localisé auprès de {0}",
no_address: "Aucune adresse associée au parcours."
},
referrer: {
title: "Référent du parcours",