mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-04 19:16:37 +00:00
feat(nc-gui): add copy user id in memebers tab
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user