Temporarily remove projects form memberstable
This commit is contained in:
@@ -23,9 +23,9 @@
|
||||
class="mt-6 mb-12"
|
||||
:columns="[
|
||||
{ id: 'name', header: 'Name', classes: 'col-span-4' },
|
||||
{ id: 'seat', header: 'Seat', classes: 'col-span-2' },
|
||||
{ id: 'joined', header: 'Joined', classes: 'col-span-3' },
|
||||
{ id: 'projects', header: 'Projects', classes: 'col-span-2' },
|
||||
{ id: 'seat', header: 'Seat', classes: 'col-span-3' },
|
||||
{ id: 'joined', header: 'Joined', classes: 'col-span-4' },
|
||||
// { id: 'projects', header: 'Projects', classes: 'col-span-2' },
|
||||
{
|
||||
id: 'actions',
|
||||
header: '',
|
||||
@@ -87,7 +87,7 @@
|
||||
<template #joined="{ item }">
|
||||
<span class="text-foreground-2">{{ formattedFullDate(item.joinDate) }}</span>
|
||||
</template>
|
||||
<template #projects="{ item }">
|
||||
<!-- <template #projects="{ item }">
|
||||
<FormButton
|
||||
v-if="
|
||||
item.projectRoles.length > 0 &&
|
||||
@@ -111,7 +111,7 @@
|
||||
{{ item.projectRoles.length }}
|
||||
{{ item.projectRoles.length === 1 ? 'project' : 'projects' }}
|
||||
</div>
|
||||
</template>
|
||||
</template> -->
|
||||
<template #actions="{ item }">
|
||||
<SettingsWorkspacesMembersActionsMenu
|
||||
:target-user="item"
|
||||
@@ -213,7 +213,5 @@ const members = computed(() => {
|
||||
.filter((user) => user.role !== Roles.Workspace.Guest)
|
||||
})
|
||||
|
||||
const isWorkspaceAdmin = computed(() => workspace.value?.role === Roles.Workspace.Admin)
|
||||
|
||||
const selectedAction = ref<Record<string, WorkspaceUserActionTypes>>({})
|
||||
</script>
|
||||
|
||||
@@ -208,7 +208,7 @@ export const useSettingsMembersActions = (params: {
|
||||
|
||||
const showLeaveWorkspace = computed(() => isActiveUserTargetUser.value)
|
||||
|
||||
const showUpdateProjectPermissions = computed(() => canModifyUser.value)
|
||||
// const showUpdateProjectPermissions = computed(() => canModifyUser.value)
|
||||
|
||||
const actionItems = computed(() => {
|
||||
const headerItems: LayoutMenuItem[] = []
|
||||
@@ -265,14 +265,15 @@ export const useSettingsMembersActions = (params: {
|
||||
: 'Admins must be on an Editor seat'
|
||||
})
|
||||
}
|
||||
if (showUpdateProjectPermissions.value) {
|
||||
mainItems.push({
|
||||
title: 'Manage project access...',
|
||||
id: WorkspaceUserActionTypes.UpdateProjectPermissions,
|
||||
disabled: params.targetUser.value.projectRoles.length === 0,
|
||||
disabledTooltip: 'User is not in any projects'
|
||||
})
|
||||
}
|
||||
// This will return post new workspace plan launch
|
||||
// if (showUpdateProjectPermissions.value) {
|
||||
// mainItems.push({
|
||||
// title: 'Manage project access...',
|
||||
// id: WorkspaceUserActionTypes.UpdateProjectPermissions,
|
||||
// disabled: params.targetUser.value.projectRoles.length === 0,
|
||||
// disabledTooltip: 'User is not in any projects'
|
||||
// })
|
||||
// }
|
||||
|
||||
if (showRemoveFromWorkspace.value) {
|
||||
footerItems.push({
|
||||
|
||||
Reference in New Issue
Block a user