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) {
|
||||
this.thumbnail = null
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
@ -273,11 +273,14 @@ export default {
|
|||
refresh () {
|
||||
const that = this
|
||||
this.isLoading = true
|
||||
this.files = []
|
||||
this.directories = []
|
||||
|
||||
axios.get(Routing.generate('admin_file_manager_api_directory', {
|
||||
directory: that.directory,
|
||||
context: that.context,
|
||||
ajax: this.ajax
|
||||
ajax: this.ajax,
|
||||
time: Date.now(),
|
||||
}))
|
||||
.then((response) => {
|
||||
that.buildBreadcrum(response.data.breadcrumb)
|
||||
|
@ -293,7 +296,7 @@ export default {
|
|||
null,
|
||||
'',
|
||||
window.location.pathname + '?' + query.toString()
|
||||
)
|
||||
)
|
||||
})
|
||||
.catch((e) => {
|
||||
alert('An error occured')
|
||||
|
|
Loading…
Reference in a new issue