fix(front): subscriptions in channel page
This commit is contained in:
parent
d721d8f223
commit
1d99d9b091
|
@ -142,7 +142,7 @@ const remove = async () => {
|
||||||
|
|
||||||
const updateSubscriptionCount = (delta: number) => {
|
const updateSubscriptionCount = (delta: number) => {
|
||||||
if (object.value) {
|
if (object.value) {
|
||||||
object.value.subscriptions_count += delta
|
object.value.subscriptions_count -= delta
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -209,13 +209,11 @@ const tabs = ref([
|
||||||
>
|
>
|
||||||
{{ t('views.channels.DetailBase.meta.tracks', totalTracks) }}
|
{{ t('views.channels.DetailBase.meta.tracks', totalTracks) }}
|
||||||
</span>
|
</span>
|
||||||
</template>
|
|
||||||
<template v-if="object.attributed_to.full_username === store.state.auth.fullUsername || store.getters['channels/isSubscribed'](object.uuid)">
|
|
||||||
<i class="bi bi-dot" />
|
<i class="bi bi-dot" />
|
||||||
{{ t('views.channels.DetailBase.meta.subscribers', object?.subscriptions_count ?? 0) }}
|
|
||||||
<i class="bi bi-dot" />
|
|
||||||
{{ t('views.channels.DetailBase.meta.listenings', object?.downloads_count ?? 0) }}
|
|
||||||
</template>
|
</template>
|
||||||
|
{{ t('views.channels.DetailBase.meta.subscribers', object?.subscriptions_count ?? 0) }}
|
||||||
|
<i class="bi bi-dot" />
|
||||||
|
{{ t('views.channels.DetailBase.meta.listenings', object?.downloads_count ?? 0) }}
|
||||||
|
|
||||||
<div v-if="totalTracks > 0">
|
<div v-if="totalTracks > 0">
|
||||||
<i class="bi bi-dot" />
|
<i class="bi bi-dot" />
|
||||||
|
|
Loading…
Reference in New Issue