fix(front): properly close album modal in parent template
This commit is contained in:
parent
e23377df06
commit
44cf5b05ab
|
@ -39,12 +39,11 @@ const submit = async () => {
|
||||||
title: newAlbumTitle.value,
|
title: newAlbumTitle.value,
|
||||||
artist: channel.value.artist?.id
|
artist: channel.value.artist?.id
|
||||||
})
|
})
|
||||||
emit('created')
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
errors.value = (error as BackendError).backendErrors
|
errors.value = (error as BackendError).backendErrors
|
||||||
} finally {
|
} finally {
|
||||||
isLoading.value = false
|
isLoading.value = false
|
||||||
isOpen.value = false // TODO: Fix the @created event to close the modal in channels/DetailOverview.vue
|
emit('created')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -94,6 +94,8 @@ if (isOwner.value) {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const { to, isOpen } = useModal('album')
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -206,7 +208,7 @@ if (isOwner.value) {
|
||||||
v-if="isOwner"
|
v-if="isOwner"
|
||||||
:model-value="object"
|
:model-value="object"
|
||||||
:channel="object"
|
:channel="object"
|
||||||
@created="useModal('album').isOpen.value = false; seriesKey = new Date()"
|
@created="isOpen = false; seriesKey = new Date()"
|
||||||
/>
|
/>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue