activity: format location label for parcours location

This commit is contained in:
nobohan 2021-11-24 15:25:36 +01:00
parent 2ee4a6b2ac
commit e73179688a

View File

@ -99,7 +99,7 @@ export default {
}, },
methods: { methods: {
labelAccompanyingCourseLocation(value) { labelAccompanyingCourseLocation(value) {
return `${value.address.text}` return `${value.address.text} (${value.locationType.title.fr})`
}, },
customLabel(value) { customLabel(value) {
return value.name ? return value.name ?
@ -132,7 +132,6 @@ export default {
let locations = []; let locations = [];
this.suggestedEntities.forEach( this.suggestedEntities.forEach(
(e) => { (e) => {
console.log(this.suggestedEntities.indexOf(e))
if (e.type === 'thirdparty' && e.address !== null){ if (e.type === 'thirdparty' && e.address !== null){
locations.push({ locations.push({
type: 'location', type: 'location',