+
- {{cohort.name}}
+ {{collection.name}}
@@ -37,21 +37,21 @@ export default {
}
},
data () {
- return { cohorts: [], mdiChevronLeft }
+ return { collections: [], mdiChevronLeft }
},
async fetch () {
- this.cohorts = await this.$axios.$get('cohorts')
+ this.collections = await this.$axios.$get('collections')
},
name: 'Default',
components: { Nav, Snackbar, Footer, Confirm },
computed: {
...mapState(['settings', 'locale']),
showBack () {
- return ['tag-tag', 'g-cohort', 'p-place', 'search', 'announcement-id'].includes(this.$route.name)
+ return ['tag-tag', 'collection-collection', 'place-place', 'search', 'announcement-id'].includes(this.$route.name)
},
- showCohorts () {
- if (!this.cohorts || this.cohorts.length === 0) return false
- return ['tag-tag', 'index', 'g-cohort', 'p-place'].includes(this.$route.name)
+ showCollections () {
+ if (!this.collections || this.collections.length === 0) return false
+ return ['tag-tag', 'index', 'g-collection', 'p-place'].includes(this.$route.name)
}
},
created () {