- ability leave team folder

- refactoring
This commit is contained in:
Čarodej
2021-10-26 09:05:08 +02:00
parent 6ef50978d5
commit 15e154176d
17 changed files with 235 additions and 58 deletions
+11
View File
@@ -45,6 +45,17 @@ const itemHelpers = {
})
},
Vue.prototype.$detachMeFromTeamFolder = function (folder) {
events.$emit('confirm:open', {
title: this.$t('Are you sure you want to leave this team?'),
message: this.$t('You will not have access to the files in this team folder.'),
action: {
id: folder.data.id,
operation: 'leave-team-folder',
}
})
},
Vue.prototype.$createTeamFolder = function () {
events.$emit('popup:open', {name: 'create-team-folder'})
}