Resolve "Can't subscribe to podcasts"

This commit is contained in:
Ciarán Ainsworth 2022-10-24 22:30:05 +00:00
parent 55a99eea14
commit b2223131b5
3 changed files with 5 additions and 5 deletions

View File

@ -0,0 +1 @@
Fixed remote subscription form in Podcast and search views (#1708)

View File

@ -1,7 +1,7 @@
<script setup lang="ts">
import type { BackendError } from '~/types'
import { ref, computed, watch, watchEffect } from 'vue'
import { ref, computed, watch } from 'vue'
import { useGettext } from 'vue3-gettext'
import { useRouter } from 'vue-router'
import { useStore } from '~/store'
@ -153,14 +153,13 @@ const rssSubscribe = async () => {
isLoading.value = false
}
watchEffect(() => {
watch(() => props.initialId, () => {
id.value = props.initialId
// createFetch()
if (id.value) {
submit()
}
})
}, { immediate: true })
</script>
<template>

View File

@ -285,7 +285,7 @@ const paginateOptions = computed(() => sortedUniq([12, 30, 50, paginateBy.value]
class="scrolling content"
>
<remote-search-form
type="both"
initial-type="both"
:show-submit="false"
:standalone="false"
:redirect="true"