fix(front): only show subscribed channels to authenticated users
This commit is contained in:
parent
283628356c
commit
3bcba605b4
|
@ -142,6 +142,7 @@ const showCreateModal = ref(false)
|
||||||
<!-- TODO: `yarn lint:tsc` doesn't understand the `Prop` type for `Header` while the language server does. It may be a question of typescript version... Investigate and fix! https://dev.funkwhale.audio/funkwhale/funkwhale/-/issues/2437 -->
|
<!-- TODO: `yarn lint:tsc` doesn't understand the `Prop` type for `Header` while the language server does. It may be a question of typescript version... Investigate and fix! https://dev.funkwhale.audio/funkwhale/funkwhale/-/issues/2437 -->
|
||||||
<!-- @vue-ignore -->
|
<!-- @vue-ignore -->
|
||||||
<Header
|
<Header
|
||||||
|
v-if="store.state.auth.authenticated"
|
||||||
:h1="t('views.channels.SubscriptionsList.title')"
|
:h1="t('views.channels.SubscriptionsList.title')"
|
||||||
:action="{
|
:action="{
|
||||||
text: t('views.channels.SubscriptionsList.link.addNew'),
|
text: t('views.channels.SubscriptionsList.link.addNew'),
|
||||||
|
@ -189,11 +190,13 @@ const showCreateModal = ref(false)
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|
||||||
<inline-search-bar
|
<inline-search-bar
|
||||||
|
v-if="store.state.auth.authenticated"
|
||||||
v-model="subscribedQuery"
|
v-model="subscribedQuery"
|
||||||
:placeholder="labels.searchPlaceholder"
|
:placeholder="labels.searchPlaceholder"
|
||||||
@search="reloadWidget"
|
@search="reloadWidget"
|
||||||
/>
|
/>
|
||||||
<channels-widget
|
<channels-widget
|
||||||
|
v-if="store.state.auth.authenticated"
|
||||||
:key="widgetKey"
|
:key="widgetKey"
|
||||||
:limit="4"
|
:limit="4"
|
||||||
:show-modification-date="true"
|
:show-modification-date="true"
|
||||||
|
|
Loading…
Reference in New Issue