fix(front): channel upload fixes
This commit is contained in:
parent
1a5c9cecaa
commit
f75cbf5884
|
@ -293,7 +293,7 @@ const uploadedFilesById = computed(() => uploadedFiles.value.reduce((acc: Record
|
||||||
//
|
//
|
||||||
|
|
||||||
const baseImportMetadata = computed(() => ({
|
const baseImportMetadata = computed(() => ({
|
||||||
channel: values.channel,
|
channel: selectedChannel,
|
||||||
import_status: 'draft',
|
import_status: 'draft',
|
||||||
import_metadata: { license: values.license, album: values.album }
|
import_metadata: { license: values.license, album: values.album }
|
||||||
}))
|
}))
|
||||||
|
|
|
@ -27,17 +27,16 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
})
|
})
|
||||||
|
|
||||||
// TODO: Make Tags work
|
// TODO: Make Tags work
|
||||||
|
|
||||||
type Item = { type: 'custom' | 'preset', label: string }
|
type Item = { type: 'custom' | 'preset', label: string }
|
||||||
type tagsModel = {
|
type tagsModel = {
|
||||||
currents: Item[],
|
currents: Item[],
|
||||||
others?: Item[],
|
others?: Item[],
|
||||||
}
|
}
|
||||||
|
|
||||||
const tags = ref({
|
const tags = ref<tagsModel>({
|
||||||
currents: [],
|
currents: [],
|
||||||
others: []
|
others: []
|
||||||
} satisfies tagsModel)
|
})
|
||||||
|
|
||||||
// TODO: check if `position: 0` is a good default
|
// TODO: check if `position: 0` is a good default
|
||||||
const newValues = reactive<Values>({
|
const newValues = reactive<Values>({
|
||||||
|
|
Loading…
Reference in New Issue