Revert using modal hook (#2689)

`@closed` hook gets called for all actions, whether user initiated or not. This is the source of auto-closing modals without user interaction reported in #3303 and #3519. While testing its effects, I also discovered other little issues but I have no clue how to Vue so I'll leave it to the big bois.

1. Moving a file to the same folder prompts a second modal. If you hit rename it doesn't ask you for the name, it just appends `(1)` and then complains that it cannot find the file if you try move again.
2. Creating a new file with the same name of an existing one does not issue a toast notification. That's because `files.ts` api does not return a properly formatted `StatusError` [here](https://github.com/filebrowser/filebrowser/blob/master/frontend/src/api/files.ts#L139).
pull/3597/head
Alan 2024-11-15 15:01:27 -06:00 committed by GitHub
parent 2fdea73430
commit 2910fec8f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 4 deletions

View File

@ -3,7 +3,6 @@
class="vfm-modal"
overlay-transition="vfm-fade"
content-transition="vfm-fade"
@closed="layoutStore.closeHovers"
:focus-trap="{
initialFocus: '#focus-prompt',
fallbackFocus: 'div.vfm__content',
@ -15,7 +14,4 @@
<script setup lang="ts">
import { VueFinalModal } from "vue-final-modal";
import { useLayoutStore } from "@/stores/layout";
const layoutStore = useLayoutStore();
</script>