CourseLocation: add message if no address

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