mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
908 B
33 lines
908 B
<script setup lang="ts"> |
|
import { useRoute } from '#imports' |
|
|
|
const route = useRoute() |
|
|
|
const showUserModal = $ref(false) |
|
|
|
const { isUIAllowed } = useUIPermission() |
|
</script> |
|
|
|
<template> |
|
<div class="flex items-center"> |
|
<a-button |
|
v-if=" |
|
isUIAllowed('newUser') && |
|
route.name !== 'index' && |
|
route.name !== 'project-index-create' && |
|
route.name !== 'project-index-create-external' && |
|
route.name !== 'index-user-index' |
|
" |
|
size="middle" |
|
type="primary" |
|
class="rounded" |
|
@click="showUserModal = true" |
|
> |
|
<div class="flex items-center space-x-1"> |
|
<mdi-account-supervisor-outline class="mr-1 nc-share-base" /> |
|
<div>{{ $t('activity.share') }}</div> |
|
</div> |
|
</a-button> |
|
<TabsAuthUserManagementUsersModal :key="showUserModal" :show="showUserModal" @closed="showUserModal = false" /> |
|
</div> |
|
</template>
|
|
|