- fixed simultaneously action with show and download file on doubleclick

- Changed download name for Backblaze
- Price plan can be defined in 12 digit number
This commit is contained in:
Peter Papp
2020-09-20 12:08:29 +02:00
parent 7ba2a3bec1
commit 69489c4ee2
10 changed files with 19 additions and 22 deletions

View File

@@ -198,18 +198,15 @@
goToItem() {
if (this.isImage || this.isVideo || this.isAudio) {
events.$emit('fileFullPreview:show')
}
if (this.isFile || !this.isFolder && !this.isPdf && !this.isVideo && !this.isAudio && !this.isImage) {
} else if (this.isFile || !this.isFolder && !this.isPdf && !this.isVideo && !this.isAudio && !this.isImage) {
this.$downloadFile(this.data.file_url, this.data.name + '.' + this.data.mimetype)
}
if (this.isFolder) {
} else if (this.isFolder) {
if (this.$isThisLocation('public')) {
this.$store.dispatch('browseShared', [{folder: this.data, back: false, init: false}])
this.$store.dispatch('browseShared', [{ folder: this.data, back: false, init: false }])
} else {
this.$store.dispatch('getFolder', [{folder: this.data, back: false, init: false}])
this.$store.dispatch('getFolder', [{ folder: this.data, back: false, init: false }])
}
}
},