mirror of https://github.com/nocodb/nocodb
Wing-Kam Wong
2 years ago
2 changed files with 34 additions and 25 deletions
@ -0,0 +1,33 @@
|
||||
<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 mr-4"> |
||||
<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="!bg-white !text-primary rounded" |
||||
@click="showUserModal = true" |
||||
> |
||||
<div class="flex items-center space-x-1"> |
||||
<mdi-account-supervisor-outline class="mr-1" /> |
||||
<div>{{ $t('activity.share') }}</div> |
||||
</div> |
||||
</a-button> |
||||
<TabsAuthUserManagementUsersModal :key="showUserModal" :show="showUserModal" @closed="showUserModal = false" /> |
||||
</div> |
||||
</template> |
Loading…
Reference in new issue