DesktopToolbar.vue refactoring

This commit is contained in:
Peter Papp
2021-08-20 16:49:51 +02:00
parent 15fba236d7
commit fb6dfbe7b4
6 changed files with 117 additions and 103 deletions
+11
View File
@@ -28,6 +28,17 @@ const itemHelpers = {
})
}
Vue.prototype.$dissolveTeamFolder = function () {
events.$emit('confirm:open', {
title: this.$t('Are you sure you want to dissolve this team?'),
message: this.$t('All team members will lose access to your files and existing folder will be moved into your "Files" section.'),
action: {
id: 'token.id',
operation: 'dissolve-team-folder'
}
})
},
Vue.prototype.$createTeamFolder = function (entry) {
events.$emit('popup:open', {name: 'create-team-folder'})
}