fix(front): channel upload fixes

This commit is contained in:
ArneBo 2025-04-14 14:37:14 +02:00
parent 1a5c9cecaa
commit f75cbf5884
2 changed files with 3 additions and 4 deletions

View File

@ -293,7 +293,7 @@ const uploadedFilesById = computed(() => uploadedFiles.value.reduce((acc: Record
//
const baseImportMetadata = computed(() => ({
channel: values.channel,
channel: selectedChannel,
import_status: 'draft',
import_metadata: { license: values.license, album: values.album }
}))

View File

@ -27,17 +27,16 @@ const props = withDefaults(defineProps<Props>(), {
})
// TODO: Make Tags work
type Item = { type: 'custom' | 'preset', label: string }
type tagsModel = {
currents: Item[],
others?: Item[],
}
const tags = ref({
const tags = ref<tagsModel>({
currents: [],
others: []
} satisfies tagsModel)
})
// TODO: check if `position: 0` is a good default
const newValues = reactive<Values>({