diff --git a/front/src/components/RemoteSearchForm.vue b/front/src/components/RemoteSearchForm.vue index 25d1fb818..a8672cab7 100644 --- a/front/src/components/RemoteSearchForm.vue +++ b/front/src/components/RemoteSearchForm.vue @@ -8,6 +8,13 @@ import { useStore } from '~/store' import axios from 'axios' +import Layout from '~/components/ui/Layout.vue' +import Button from '~/components/ui/Button.vue' +import Input from '~/components/ui/Input.vue' +import Alert from '~/components/ui/Alert.vue' +import Tabs from '~/components/ui/Tabs.vue' +import Tab from '~/components/ui/Tab.vue' + import updateQueryString from '~/composables/updateQueryString' import useLogger from '~/composables/useLogger' @@ -165,40 +172,52 @@ watch(() => props.initialId, () => { - - - - {{ t('components.RemoteSearchForm.button.rss') }} - - - + + - - {{ t('components.RemoteSearchForm.button.fediverse') }} - - + {{ t('components.RemoteSearchForm.description.fediverse') }} + + + - - - - {{ t('components.RemoteSearchForm.header.fetchFailed') }} - props.initialId, () => { {{ error }} - - - - {{ labels.fieldLabel }} - - - {{ t('components.RemoteSearchForm.description.rss') }} - - - {{ t('components.RemoteSearchForm.description.fediverse') }} - - - - + {{ t('components.RemoteSearchForm.button.search') }} - - - + + - - {{ t('components.RemoteSearchForm.warning.unsupported') }} - - + {{ t('components.RemoteSearchForm.warning.unsupported') }} + diff --git a/front/src/components/library/Albums.vue b/front/src/components/library/Albums.vue index 955bd2530..3a7d79a02 100644 --- a/front/src/components/library/Albums.vue +++ b/front/src/components/library/Albums.vue @@ -218,7 +218,8 @@ const paginateOptions = computed(() => sortedUniq([12, 30, 50, paginateBy.value] solid small primary - :to="{name: 'content.index'}" + @click="store.commit('ui/toggleModal', 'upload')" + :aria-pressed="store.state.ui.modalsOpen.has('upload') || undefine" > diff --git a/front/src/components/library/Artists.vue b/front/src/components/library/Artists.vue index 24397ad95..4a5203671 100644 --- a/front/src/components/library/Artists.vue +++ b/front/src/components/library/Artists.vue @@ -230,7 +230,8 @@ const paginateOptions = computed(() => sortedUniq([12, 30, 50, paginateBy.value] solid small primary - :to="{name: 'content.index'}" + @click="store.commit('ui/toggleModal', 'upload')" + :aria-pressed="store.state.ui.modalsOpen.has('upload') || undefine" > diff --git a/front/src/components/library/Podcasts.vue b/front/src/components/library/Podcasts.vue index 20cf9b35e..fe53c6e9e 100644 --- a/front/src/components/library/Podcasts.vue +++ b/front/src/components/library/Podcasts.vue @@ -16,6 +16,7 @@ import axios from 'axios' import TagsSelector from '~/components/library/TagsSelector.vue' import RemoteSearchForm from '~/components/RemoteSearchForm.vue' import Modal from '~/components/ui/Modal.vue' +import Card from '~/components/ui/Card.vue' import ArtistCard from '~/components/artist/Card.vue' import Pagination from '~/components/ui/Pagination.vue' import Layout from '~/components/ui/Layout.vue' @@ -129,6 +130,17 @@ const labels = computed(() => ({ })) const paginateOptions = computed(() => sortedUniq([12, 30, 50, paginateBy.value].sort((a, b) => a - b))) + +const modalName = 'subscribe' + +const isOpen = computed({ + get() { + return store.state.ui.modalsOpen.has(modalName); + }, + set(value) { + store.commit('ui/setModal', [modalName, value]); + } +}) @@ -213,22 +225,32 @@ const paginateOptions = computed(() => sortedUniq([12, 30, 50, paginateBy.value] {{ t('components.library.Podcasts.empty.noResults') }} - - {{ t('components.library.Podcasts.button.feed') }} - - + + + + - {{ t('components.library.Podcasts.button.channel') }} - + + + + @@ -238,8 +260,8 @@ const paginateOptions = computed(() => sortedUniq([12, 30, 50, paginateBy.value] :pages="Math.ceil((result?.results.length || 0)/paginateBy)" /> sortedUniq([12, 30, 50, paginateBy.value] :show-submit="false" :standalone="false" :redirect="true" - @subscribed="showSubscribeModal = false; fetchData()" + @subscribed="isOpen = false; fetchData()" /> - - + + {{ t('components.library.Podcasts.button.cancel') }} {{ t('components.library.Podcasts.button.subscribe') }} - + diff --git a/front/src/ui/components/Sidebar.vue b/front/src/ui/components/Sidebar.vue index 762a40a0b..b1d08025f 100644 --- a/front/src/ui/components/Sidebar.vue +++ b/front/src/ui/components/Sidebar.vue @@ -67,7 +67,7 @@ const logoUrl = computed(() => store.state.auth.authenticated ? 'library.index' :class="[$style.button]" ghost @click="store.commit('ui/toggleModal', 'upload')" - :aria-pressed="store.state.ui.modalsOpen.has('languages') || undefined" + :aria-pressed="store.state.ui.modalsOpen.has('upload') || undefined" >
- {{ t('components.RemoteSearchForm.description.rss') }} -
- {{ t('components.RemoteSearchForm.description.fediverse') }} -
- {{ t('components.RemoteSearchForm.warning.unsupported') }} -