Resolve "Can't subscribe to podcasts"
This commit is contained in:
parent
55a99eea14
commit
b2223131b5
|
@ -0,0 +1 @@
|
||||||
|
Fixed remote subscription form in Podcast and search views (#1708)
|
|
@ -1,7 +1,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { BackendError } from '~/types'
|
import type { BackendError } from '~/types'
|
||||||
|
|
||||||
import { ref, computed, watch, watchEffect } from 'vue'
|
import { ref, computed, watch } from 'vue'
|
||||||
import { useGettext } from 'vue3-gettext'
|
import { useGettext } from 'vue3-gettext'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import { useStore } from '~/store'
|
import { useStore } from '~/store'
|
||||||
|
@ -153,14 +153,13 @@ const rssSubscribe = async () => {
|
||||||
isLoading.value = false
|
isLoading.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
watchEffect(() => {
|
watch(() => props.initialId, () => {
|
||||||
id.value = props.initialId
|
id.value = props.initialId
|
||||||
// createFetch()
|
|
||||||
|
|
||||||
if (id.value) {
|
if (id.value) {
|
||||||
submit()
|
submit()
|
||||||
}
|
}
|
||||||
})
|
}, { immediate: true })
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
@ -285,7 +285,7 @@ const paginateOptions = computed(() => sortedUniq([12, 30, 50, paginateBy.value]
|
||||||
class="scrolling content"
|
class="scrolling content"
|
||||||
>
|
>
|
||||||
<remote-search-form
|
<remote-search-form
|
||||||
type="both"
|
initial-type="both"
|
||||||
:show-submit="false"
|
:show-submit="false"
|
||||||
:standalone="false"
|
:standalone="false"
|
||||||
:redirect="true"
|
:redirect="true"
|
||||||
|
|
Loading…
Reference in New Issue