@@ -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 @@
+
+
+
+
Really delete {{ object.name }}?
+
+ Deletion is a permanent operation: {{ object.name }}, as well as its contents, will be removed immediately.
+
+
+
+
+
+
+
+
+
+
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 @@