Fix seeing media on existing records on podcast episodes.

This commit is contained in:
Buster Neece 2022-12-27 03:17:29 -06:00
parent 08de0f96dc
commit 25236dff83
No known key found for this signature in database
GPG Key ID: F1D2E64A0005E80E
2 changed files with 6 additions and 3 deletions

View File

@ -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(() => {

View File

@ -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)