@@ -16,7 +16,7 @@ | |||
<script> | |||
import Places from 'vue-places'; | |||
export default { | |||
name: 'FormulateStars', | |||
name: 'FormulateDestination', | |||
components: { | |||
Places, | |||
}, |
@@ -33,5 +33,6 @@ export default { | |||
flex-direction: column; | |||
justify-content: center; | |||
align-items: center; | |||
z-index: 1; | |||
} | |||
</style> |
@@ -108,7 +108,6 @@ export default { | |||
return date.toJSON().slice(0, 10); | |||
}, | |||
saveTravel(data) { | |||
console.log(data); | |||
if (this.travelData.id) { | |||
this.$root.directusClient | |||
.updateItem('travel', this.travelData.id, data) |
@@ -23,8 +23,8 @@ export default { | |||
if (response.data.length === 0) { | |||
throw new Error(); | |||
} | |||
this.travelFetched = true; | |||
this.travel = response.data[0]; | |||
this.travelFetched = true; | |||
}) | |||
.catch(() => { | |||
this.$root.$emit('notify', 'Could not find traveldata'); |