-
+
+
-
-
-
import { computed, onMounted, ref } from 'vue-demi'
+import TOrderButton from './TOrderButton.vue'
import { useApp } from '~/use/app'
import { useAuth } from '~/use/auth'
import { useProfiles } from '~/use/profiles'
@@ -302,6 +296,9 @@ import {
import { useCities } from '~/use/cities'
export default {
+ components: {
+ TOrderButton,
+ },
props: {
profile: {
type: Object,
@@ -311,7 +308,7 @@ export default {
head() {
return getMeta('profiles', this.profile)
},
- setup(props, { root }) {
+ setup(props) {
const internationalChatLink = 'https://t.me/+Vxw15sDG-dWpqHDj'
const { uid, isAdmin, can } = useAuth()
const { profileFields } = useProfiles()
@@ -357,17 +354,12 @@ export default {
intro.visible = true
}
}
-
const events = ref([])
- const loaded = ref(false)
-
const subscribersCount = computed(() => {
return props.profile?.watch?.count || 0
})
-
onMounted(async () => {
let result = []
-
if (props.profile.username === 'Travel') {
result = await getFestivals()
} else if (props.profile.type === 'City') {
@@ -391,15 +383,11 @@ export default {
),
]
}
-
events.value = result
- loaded.value = true
})
-
return {
internationalChatLink,
intro,
- loaded,
uid,
can,
getExcerpt,