Fix seeing media on existing records on podcast episodes.
This commit is contained in:
parent
08de0f96dc
commit
25236dff83
|
@ -32,8 +32,9 @@
|
|||
|
||||
<script setup>
|
||||
|
||||
import {computed, ref, toRef} from "vue";
|
||||
import {computed, ref, toRef, watch} from "vue";
|
||||
import {useAxios} from "~/vendor/axios";
|
||||
import {syncRef} from "@vueuse/core";
|
||||
|
||||
const props = defineProps({
|
||||
modelValue: Object,
|
||||
|
@ -44,7 +45,7 @@ const props = defineProps({
|
|||
|
||||
const emit = defineEmits(['update:modelValue']);
|
||||
|
||||
const artworkSrc = ref(props.artworkSrc);
|
||||
const artworkSrc = toRef(props, 'artworkSrc');
|
||||
const localSrc = ref(null);
|
||||
|
||||
const src = computed(() => {
|
||||
|
|
|
@ -44,6 +44,7 @@
|
|||
import FlowUpload from '~/components/Common/FlowUpload';
|
||||
import {computed, ref, toRef} from "vue";
|
||||
import {useAxios} from "~/vendor/axios";
|
||||
import {syncRef} from "@vueuse/core";
|
||||
|
||||
const props = defineProps({
|
||||
modelValue: Object,
|
||||
|
@ -55,7 +56,8 @@ const props = defineProps({
|
|||
|
||||
const emit = defineEmits(['update:modelValue']);
|
||||
|
||||
const hasMedia = ref(props.recordHasMedia);
|
||||
const hasMedia = ref(null);
|
||||
syncRef(toRef(props, 'recordHasMedia'), hasMedia, {direction: 'ltr'});
|
||||
|
||||
const targetUrl = computed(() => {
|
||||
return (props.editMediaUrl)
|
||||
|
|
Loading…
Reference in New Issue