Skip to content

Commit

Permalink
chore: Comment the function to get a groupfolder
Browse files Browse the repository at this point in the history
  • Loading branch information
zak39 committed Nov 5, 2024
1 parent c3eee3e commit cc41e70
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions src/SelectGroupfolders.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,34 +133,34 @@ export default {
await addGroupToGroupfolder(space.folder_id, spaceManagerGID)
await addGroupToGroupfolder(space.folder_id, spaceUserGID)
const groupfolder = await get(groupfoldersSelected[mountPoint].id, this)
const groupstransferoUserGroup = await transferUsersToUserGroup(space.id_space, groupfolder)
await addGroupToManageACLForGroupfolder(space.folder_id, spaceManagerGID, this)
const GidGroupsFromACL = groupfoldersSelected[mountPoint].manage.map(group => group.id)
await GidGroupsFromACL.forEach(gid => {
removeGroupToManageACLForGroupfolder(space.folder_id, gid)
})
// Define the quota
let quota = ''
if (groupfoldersSelected[mountPoint].quota === '-3') {
quota = t('workspace', 'unlimited')
} else {
quota = groupfoldersSelected[mountPoint].quota
}
this.$store.commit('addSpace', {
color: space.color,
groups: groupstransferoUserGroup.groups,
isOpen: false,
id: space.id_space,
groupfolderId: space.folder_id,
name: space.name,
quota,
users: groupstransferoUserGroup.users,
})
// const groupfolder = await get(groupfoldersSelected[mountPoint].id, this)
// const groupstransferoUserGroup = await transferUsersToUserGroup(space.id_space, groupfolder)
// await addGroupToManageACLForGroupfolder(space.folder_id, spaceManagerGID, this)
// const GidGroupsFromACL = groupfoldersSelected[mountPoint].manage.map(group => group.id)
// await GidGroupsFromACL.forEach(gid => {
// removeGroupToManageACLForGroupfolder(space.folder_id, gid)

Check failure on line 143 in src/SelectGroupfolders.vue

View workflow job for this annotation

GitHub Actions / lint

Unexpected tab character
// })
// // Define the quota
// let quota = ''
// if (groupfoldersSelected[mountPoint].quota === '-3') {
// quota = t('workspace', 'unlimited')

Check failure on line 149 in src/SelectGroupfolders.vue

View workflow job for this annotation

GitHub Actions / lint

Unexpected tab character
// } else {
// quota = groupfoldersSelected[mountPoint].quota

Check failure on line 151 in src/SelectGroupfolders.vue

View workflow job for this annotation

GitHub Actions / lint

Unexpected tab character
// }
// this.$store.commit('addSpace', {
// color: space.color,

Check failure on line 155 in src/SelectGroupfolders.vue

View workflow job for this annotation

GitHub Actions / lint

Unexpected tab character
// groups: groupstransferoUserGroup.groups,

Check failure on line 156 in src/SelectGroupfolders.vue

View workflow job for this annotation

GitHub Actions / lint

Unexpected tab character
// isOpen: false,

Check failure on line 157 in src/SelectGroupfolders.vue

View workflow job for this annotation

GitHub Actions / lint

Unexpected tab character
// id: space.id_space,

Check failure on line 158 in src/SelectGroupfolders.vue

View workflow job for this annotation

GitHub Actions / lint

Unexpected tab character
// groupfolderId: space.folder_id,
// name: space.name,
// quota,
// users: groupstransferoUserGroup.users,
// })
}
},
Expand Down

0 comments on commit cc41e70

Please sign in to comment.