mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-06 00:07:08 +00:00
feature: UX improvement: Remove copy invite token button for registered users
Co-authored-by: gitstart <gitstart@gitstart.com> Co-authored-by: gitstart <gitstart@users.noreply.github.com> Co-authored-by: beejaybot <akisanyamobolaji@gmail.com> Co-authored-by: gitstart_bot <gitstart_bot@users.noreply.github.com> Co-authored-by: Mayomi Ayandiran <ayandiranmayomi@gmail.com>
This commit is contained in:
@@ -109,6 +109,11 @@ const deleteUser = async () => {
|
||||
$e('a:user:delete')
|
||||
}
|
||||
|
||||
const isNewInvitedUser = (user: User) => {
|
||||
if (user.invite_token) return true
|
||||
return false
|
||||
}
|
||||
|
||||
const onEdit = (user: User) => {
|
||||
selectedUser = user
|
||||
showUserModal = true
|
||||
@@ -320,7 +325,13 @@ const isSuperAdmin = (user: { main_roles?: string }) => {
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
|
||||
<a-dropdown :trigger="['click']" class="flex" placement="bottomRight" overlay-class-name="nc-dropdown-user-mgmt">
|
||||
<a-dropdown
|
||||
v-if="isNewInvitedUser(user)"
|
||||
:trigger="['click']"
|
||||
class="flex"
|
||||
placement="bottomRight"
|
||||
overlay-class-name="nc-dropdown-user-mgmt"
|
||||
>
|
||||
<div class="flex flex-row items-center">
|
||||
<a-button type="text" class="!px-0">
|
||||
<div class="flex flex-row items-center h-[1.2rem]">
|
||||
|
||||
Reference in New Issue
Block a user