diff --git a/resources/assets/scripts/components/server/components/filemanager/FileContextMenu.vue b/resources/assets/scripts/components/server/components/filemanager/FileContextMenu.vue index 0593c60ef..f88aca70c 100644 --- a/resources/assets/scripts/components/server/components/filemanager/FileContextMenu.vue +++ b/resources/assets/scripts/components/server/components/filemanager/FileContextMenu.vue @@ -41,7 +41,7 @@
-
+
@@ -77,6 +77,11 @@ window.events.$emit('server:files:rename', this.object); this.$emit('close'); }, + + openDeleteModal: function () { + window.events.$emit('server:files:delete', this.object); + this.$emit('close'); + } } }); diff --git a/resources/assets/scripts/components/server/components/filemanager/modals/DeleteFileModal.vue b/resources/assets/scripts/components/server/components/filemanager/modals/DeleteFileModal.vue new file mode 100644 index 000000000..ee8d9ff68 --- /dev/null +++ b/resources/assets/scripts/components/server/components/filemanager/modals/DeleteFileModal.vue @@ -0,0 +1,48 @@ + + + diff --git a/resources/assets/scripts/components/server/subpages/FileManager.vue b/resources/assets/scripts/components/server/subpages/FileManager.vue index 0b0cea8b3..437082bf0 100644 --- a/resources/assets/scripts/components/server/subpages/FileManager.vue +++ b/resources/assets/scripts/components/server/subpages/FileManager.vue @@ -49,7 +49,8 @@
- + +
@@ -62,6 +63,7 @@ import FolderRow from "@/components/server/components/filemanager/FolderRow.vue"; import CreateFolderModal from '../components/filemanager/modals/CreateFolderModal.vue'; import RenameModal from '../components/filemanager/modals/RenameModal.vue'; + import DeleteFileModal from '../components/filemanager/modals/DeleteFileModal.vue'; import {DirectoryContentObject} from "@/api/server/types"; type DataStructure = { @@ -75,7 +77,7 @@ export default Vue.extend({ name: 'FileManager', - components: {CreateFolderModal, FileRow, FolderRow, RenameModal}, + components: {CreateFolderModal, DeleteFileModal, FileRow, FolderRow, RenameModal}, computed: { ...mapState('server', ['server', 'credentials']), ...mapState('socket', ['connected']),