refactoring part 2

This commit is contained in:
Peter Papp
2021-08-23 15:22:43 +02:00
parent cc0436b8f3
commit 42210233dc
15 changed files with 203 additions and 156 deletions

View File

@@ -28,6 +28,16 @@ const itemHelpers = {
})
}
Vue.prototype.$downloadSelection = function (item) {
let clipboard = this.$store.getters.clipboard
if (clipboard.length > 1 || (clipboard.length === 1 && clipboard[0].type === 'folder'))
this.$store.dispatch('downloadZip')
else {
Vue.prototype.$downloadFile(item.file_url, item.name + '.' + item.mimetype)
}
}
Vue.prototype.$dissolveTeamFolder = function () {
events.$emit('confirm:open', {
title: this.$t('Are you sure you want to dissolve this team?'),