fix filemanager thumbnails
This commit is contained in:
parent
e42860ac5b
commit
601363f7e5
|
@ -54,6 +54,7 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (['image/png', 'image/jpg', 'image/jpeg', 'image/gif'].indexOf(this.mime) === -1) {
|
if (['image/png', 'image/jpg', 'image/jpeg', 'image/gif'].indexOf(this.mime) === -1) {
|
||||||
|
this.thumbnail = null
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -273,11 +273,14 @@ export default {
|
||||||
refresh () {
|
refresh () {
|
||||||
const that = this
|
const that = this
|
||||||
this.isLoading = true
|
this.isLoading = true
|
||||||
|
this.files = []
|
||||||
|
this.directories = []
|
||||||
|
|
||||||
axios.get(Routing.generate('admin_file_manager_api_directory', {
|
axios.get(Routing.generate('admin_file_manager_api_directory', {
|
||||||
directory: that.directory,
|
directory: that.directory,
|
||||||
context: that.context,
|
context: that.context,
|
||||||
ajax: this.ajax
|
ajax: this.ajax,
|
||||||
|
time: Date.now(),
|
||||||
}))
|
}))
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
that.buildBreadcrum(response.data.breadcrumb)
|
that.buildBreadcrum(response.data.breadcrumb)
|
||||||
|
|
Loading…
Reference in a new issue