bug fixes

This commit is contained in:
MakingCG
2020-03-16 18:23:22 +01:00
parent 850f910b96
commit 7cdf463e4e
13 changed files with 66 additions and 59 deletions

View File

@@ -86,6 +86,9 @@
},
preview() {
return this.preview_type === 'list' ? 'th' : 'th-list'
},
isTrash() {
return this.currentFolder.location === 'trash' || this.currentFolder.location === 'trash-root'
}
},
data() {
@@ -112,7 +115,7 @@
events.$emit('items:delete')
},
createFolder() {
this.$createFolder()
if (! this.isTrash) this.$createFolder()
}
},
created() {