fix: permissions for server compatibility (#5525)
* disable buttons for server compatibility settings * update permissions checkboxes
This commit is contained in:
@@ -129,10 +129,11 @@
|
||||
(currentMember?.permissions & EDIT_MEMBER) !== EDIT_MEMBER ||
|
||||
(currentMember?.permissions & UPLOAD_VERSION) !== UPLOAD_VERSION
|
||||
"
|
||||
label="Upload version"
|
||||
:label="isServerProject ? 'Update content' : 'Upload version'"
|
||||
@update:model-value="allTeamMembers[index].permissions ^= UPLOAD_VERSION"
|
||||
/>
|
||||
<Checkbox
|
||||
v-if="!isServerProject"
|
||||
:model-value="(member?.permissions & DELETE_VERSION) === DELETE_VERSION"
|
||||
:disabled="
|
||||
(currentMember?.permissions & EDIT_MEMBER) !== EDIT_MEMBER ||
|
||||
@@ -401,10 +402,11 @@
|
||||
(currentMember?.permissions & UPLOAD_VERSION) !== UPLOAD_VERSION ||
|
||||
!allOrgMembers[index].override
|
||||
"
|
||||
label="Upload version"
|
||||
:label="isServerProject ? 'Update content' : 'Upload version'"
|
||||
@update:model-value="allOrgMembers[index].permissions ^= UPLOAD_VERSION"
|
||||
/>
|
||||
<Checkbox
|
||||
v-if="!isServerProject"
|
||||
:model-value="(member?.permissions & DELETE_VERSION) === DELETE_VERSION"
|
||||
:disabled="
|
||||
(currentMember?.permissions & EDIT_MEMBER) !== EDIT_MEMBER ||
|
||||
@@ -557,12 +559,15 @@ import { removeSelfFromTeam } from '~/helpers/teams.js'
|
||||
const { addNotification } = injectNotificationManager()
|
||||
const {
|
||||
projectV2: project,
|
||||
projectV3,
|
||||
organization,
|
||||
allMembers,
|
||||
currentMember,
|
||||
invalidate,
|
||||
} = injectProjectPageContext()
|
||||
|
||||
const isServerProject = computed(() => projectV3.value?.minecraft_server != null)
|
||||
|
||||
const cosmetics = useCosmetics()
|
||||
const auth = await useAuth()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user