diff --git a/routes/profile.vue b/routes/profile.vue index 7ab430c32..1d3f8dc8a 100644 --- a/routes/profile.vue +++ b/routes/profile.vue @@ -178,14 +178,19 @@ glue: ' ' + this.$t('pronouns.or') + ' ', allFlags: process.env.FLAGS, saving: false, + terms: [], } }, async asyncData({ app, route }) { return { profiles: await app.$axios.$get(`/profile/get/${encodeURIComponent(route.params.pathMatch)}`), - terms: await app.$axios.$get(`/terms`), }; }, + async mounted() { + if (this.config.nouns.terms.enabled) { + this.terms = await this.$axios.$get(`/terms`); + } + }, computed: { username() { const base = this.$route.params.pathMatch;