Enhance show deletion functionality to support media removal option
ci / build-backend (push) Successful in 1m32s
ci / build-frontend (push) Successful in 1m7s
ci / tests (push) Successful in 1m45s
ci / sonar (push) Failing after 31s

Updated the DeleteShowCommand and its handler to include an optional parameter for media deletion, allowing users to remove associated media files when deleting a show. Refactored related components and API calls to accommodate this new feature, ensuring a seamless user experience. Additionally, updated localization strings to reflect the new functionality and adjusted tests to verify the correct behavior of the deletion process with and without media.
This commit is contained in:
Leonid Pershin
2026-07-28 11:06:52 +03:00
parent 6ca629c13a
commit 2e76fa1452
16 changed files with 368 additions and 71 deletions
@@ -55,7 +55,11 @@ export function InterstitialsPanel() {
},
onError,
})
const deleteClipMutation = useMutation({ mutationFn: deleteShow, onSuccess: invalidate, onError })
const deleteClipMutation = useMutation({
mutationFn: (id: string) => deleteShow(id),
onSuccess: invalidate,
onError,
})
const deleteBlockMutation = useMutation({
mutationFn: deleteCollection,
onSuccess: invalidate,