mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Fix streaming scenes not able to be deleted (#2549)
* Don't navigate away from scene if delete failed * Close connection on cancel
This commit is contained in:
@@ -60,11 +60,12 @@ export const DeleteScenesDialog: React.FC<IDeleteSceneDialogProps> = (
|
||||
try {
|
||||
await deleteScene();
|
||||
Toast.success({ content: toastMessage });
|
||||
props.onClose(true);
|
||||
} catch (e) {
|
||||
Toast.error(e);
|
||||
props.onClose(false);
|
||||
}
|
||||
setIsDeleting(false);
|
||||
props.onClose(true);
|
||||
}
|
||||
|
||||
function funscriptPath(scenePath: string) {
|
||||
|
||||
Reference in New Issue
Block a user