|
|
@ -61,12 +61,14 @@ onMounted(async () => { |
|
|
|
<div class="flex w-2/5 text-gray-600">Users</div> |
|
|
|
<div class="flex w-2/5 text-gray-600">Users</div> |
|
|
|
<div class="flex w-2/5 text-gray-600">Date Joined</div> |
|
|
|
<div class="flex w-2/5 text-gray-600">Date Joined</div> |
|
|
|
<div class="flex w-2/5 text-gray-600">Access</div> |
|
|
|
<div class="flex w-2/5 text-gray-600">Access</div> |
|
|
|
<!-- <div class="flex w-2/5 text-gray-600">Added By</div> --> |
|
|
|
|
|
|
|
<div class="flex w-2/5 text-gray-600">Action</div> |
|
|
|
<div class="flex w-2/5 text-gray-600">Action</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="flex flex-col nc-scrollbar-md"> |
|
|
|
<div class="flex flex-col nc-scrollbar-md"> |
|
|
|
<div v-for="(collab, i) of filterCollaborators" :key="i" |
|
|
|
<div |
|
|
|
class="relative w-full nc-collaborators nc-collaborators-list-row"> |
|
|
|
v-for="(collab, i) of filterCollaborators" |
|
|
|
|
|
|
|
:key="i" |
|
|
|
|
|
|
|
class="relative w-full nc-collaborators nc-collaborators-list-row" |
|
|
|
|
|
|
|
> |
|
|
|
<div class="!py-0 w-2/5 email truncate"> |
|
|
|
<div class="!py-0 w-2/5 email truncate"> |
|
|
|
<div class="flex items-center gap-2"> |
|
|
|
<div class="flex items-center gap-2"> |
|
|
|
<span class="color-band" :style="{ backgroundColor: stringToColour(collab.email) }">{{ |
|
|
|
<span class="color-band" :style="{ backgroundColor: stringToColour(collab.email) }">{{ |
|
|
@ -83,19 +85,23 @@ onMounted(async () => { |
|
|
|
<div class="w-2/5 roles"> |
|
|
|
<div class="w-2/5 roles"> |
|
|
|
<div class="nc-collaborator-role-select"> |
|
|
|
<div class="nc-collaborator-role-select"> |
|
|
|
<template v-if="accessibleRoles.includes(collab.roles)"> |
|
|
|
<template v-if="accessibleRoles.includes(collab.roles)"> |
|
|
|
<RolesSelector :role="collab.roles" :roles="accessibleRoles" :description="false" |
|
|
|
<RolesSelector |
|
|
|
:on-role-change="(role: WorkspaceUserRoles) => updateCollaborator(collab, role)" /> |
|
|
|
:role="collab.roles" |
|
|
|
|
|
|
|
:roles="accessibleRoles" |
|
|
|
|
|
|
|
:description="false" |
|
|
|
|
|
|
|
:on-role-change="(role: WorkspaceUserRoles) => updateCollaborator(collab, role)" |
|
|
|
|
|
|
|
/> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template v-else> |
|
|
|
<template v-else> |
|
|
|
<RolesBadge class="!bg-white" :role="collab.roles" /> |
|
|
|
<RolesBadge class="!bg-white" :role="collab.roles" /> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- <div class="w-2/5"></div> --> |
|
|
|
|
|
|
|
<div class="w-2/5 pl-5"> |
|
|
|
<div class="w-2/5 pl-5"> |
|
|
|
<NcDropdown v-if="collab.roles !== WorkspaceUserRoles.OWNER" :trigger="['click']"> |
|
|
|
<NcDropdown v-if="collab.roles !== WorkspaceUserRoles.OWNER" :trigger="['click']"> |
|
|
|
<MdiDotsVertical |
|
|
|
<MdiDotsVertical |
|
|
|
class="border-1 !text-gray-600 h-5.5 w-5.5 rounded outline-0 p-0.5 nc-workspace-menu transform transition-transform !text-gray-400 cursor-pointer hover:(!text-gray-500 bg-gray-100)" /> |
|
|
|
class="border-1 !text-gray-600 h-5.5 w-5.5 rounded outline-0 p-0.5 nc-workspace-menu transform transition-transform !text-gray-400 cursor-pointer hover:(!text-gray-500 bg-gray-100)" |
|
|
|
|
|
|
|
/> |
|
|
|
<template #overlay> |
|
|
|
<template #overlay> |
|
|
|
<NcMenu> |
|
|
|
<NcMenu> |
|
|
|
<NcMenuItem class="!text-red-500 !hover:bg-red-50" @click="removeCollaborator(collab.id)"> |
|
|
|
<NcMenuItem class="!text-red-500 !hover:bg-red-50" @click="removeCollaborator(collab.id)"> |
|
|
|