bulk-operations v0.1 adding Drag & Drop for moving items to navigations folders, add folders to favourites

This commit is contained in:
Milos Holba
2020-11-20 17:54:39 +01:00
parent 9d9e07d0fa
commit a3dd817e7a
19 changed files with 323 additions and 166 deletions

View File

@@ -149,11 +149,9 @@ export default {
return this.FilePreviewType === "list" ? "th" : "th-list";
},
canCreateFolderInView() {
let location = !this.$isThisLocation(["base", "public"]);
let locations = ["base", "public"];
if(location || this.fileInfoDetail.length >1) {
return true
}
return !this.$isThisLocation(locations) || this.fileInfoDetail.length > 1
},
canDeleteInView() {
return !this.$isThisLocation([
@@ -167,10 +165,9 @@ export default {
]);
},
canUploadInView() {
let location = !this.$isThisLocation(["base", "public"]);
if(location || this.fileInfoDetail.length >1) {
return true
}
let locations = ["base", "public"]
return !this.$isThisLocation(locations) || this.fileInfoDetail.length > 1
},
canMoveInView() {
return !this.$isThisLocation([
@@ -182,16 +179,15 @@ export default {
]);
},
canShareInView() {
let location = !this.$isThisLocation([
let locations = [
"base",
"participant_uploads",
"latest",
"shared",
"public",
]);
if(location || this.fileInfoDetail.length > 1) {
return true
}
]
return !this.$isThisLocation(locations) || this.fileInfoDetail.length > 1
},
},
methods: {