diff --git a/assets/js/admin/components/file-manager/Files.vue b/assets/js/admin/components/file-manager/Files.vue
index bb10d01..8d9b137 100644
--- a/assets/js/admin/components/file-manager/Files.vue
+++ b/assets/js/admin/components/file-manager/Files.vue
@@ -5,6 +5,11 @@
+
+
+ Loading...
+
+
@@ -200,7 +205,8 @@ export default {
files: [],
parent: null,
modalUrl: null,
- ajax: 0
+ ajax: 0,
+ isLoading: false
}
},
methods: {
@@ -266,6 +272,7 @@ export default {
},
refresh () {
const that = this
+ this.isLoading = true
axios.get(Routing.generate('admin_file_manager_api_directory', {
directory: that.directory,
@@ -277,6 +284,7 @@ export default {
that.parent = response.data.parent
that.directories = response.data.directories
that.files = response.data.files
+ that.isLoading = false
const query = new URLSearchParams(window.location.search)
query.set('path', that.directory)
@@ -285,7 +293,7 @@ export default {
null,
'',
window.location.pathname + '?' + query.toString()
- )
+ )
})
.catch((e) => {
alert('An error occured')