contextmenu refactoring

This commit is contained in:
Peter Papp
2021-08-20 09:54:00 +02:00
parent c57a244ae1
commit 99e9c0086e
6 changed files with 300 additions and 357 deletions
+14
View File
@@ -6,6 +6,14 @@ import store from "../store";
const itemHelpers = {
install(Vue) {
Vue.prototype.$emptyTrash = function () {
this.$store.dispatch('emptyTrash')
}
Vue.prototype.$shareCancel = function () {
this.$store.dispatch('shareCancel')
}
Vue.prototype.$renameFileOrFolder = function (entry) {
events.$emit('popup:open', {name: 'rename-item', item: entry})
}
@@ -14,6 +22,12 @@ const itemHelpers = {
events.$emit('popup:open', {name: 'move', item: [entry]})
}
Vue.prototype.$createFolder = function () {
this.$store.dispatch('createFolder', {
name: this.$t('popup_create_folder.folder_default_name')
})
}
Vue.prototype.$createTeamFolder = function (entry) {
events.$emit('popup:open', {name: 'create-team-folder'})
}