feat(nc-gui): add copy user id in memebers tab

This commit is contained in:
Ramesh Mane
2025-10-30 08:02:25 +00:00
parent 80cf8fda30
commit fea685cb3e
4 changed files with 88 additions and 24 deletions

View File

@@ -273,9 +273,16 @@ const columns = [
{
key: 'created_at',
title: t('title.dateJoined'),
basis: '25%',
basis: '20%',
minWidth: 200,
},
{
key: 'action',
title: t('labels.actions'),
width: 110,
minWidth: 110,
justify: 'justify-end',
},
] as NcTableColumnProps[]
const customRow = (record: Record<string, any>) => ({
@@ -490,6 +497,26 @@ onBeforeUnmount(() => {
</span>
</NcTooltip>
</div>
<div v-if="column.key === 'action'">
<NcDropdown placement="bottomRight">
<NcButton size="small" type="secondary">
<component :is="iconMap.ncMoreVertical" />
</NcButton>
<template #overlay>
<NcMenu variant="small">
<NcMenuItemCopyId
:id="record.id"
:tooltip="$t('labels.clickToCopyUserID')"
:label="
$t('labels.userIdColon', {
userId: record.id,
})
"
/>
</NcMenu>
</template>
</NcDropdown>
</div>
</template>
</NcTable>
</div>