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.
43 lines
1.2 KiB
43 lines
1.2 KiB
2 years ago
|
<script lang="ts" setup>
|
||
|
import { useUIPermission } from '~/composables/useUIPermission'
|
||
|
|
||
|
const { isUIAllowed } = useUIPermission()
|
||
|
|
||
|
const tabs = [
|
||
2 years ago
|
...(isUIAllowed('superAdminUserManagement')
|
||
|
? [
|
||
|
{ label: 'Users', key: 'users' },
|
||
|
{ label: 'Settings', key: 'settings' },
|
||
|
]
|
||
|
: []),
|
||
2 years ago
|
{ label: 'Reset Password', key: 'password-reset' },
|
||
|
]
|
||
|
|
||
|
const selectedTabKey = ref(tabs[0].key)
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<div class="h-full overflow-y-scroll scrollbar-thin-dull pt-4">
|
||
|
<a-tabs v-model:active-key="selectedTabKey" :open-keys="[]" mode="horizontal" class="nc-auth-tabs">
|
||
2 years ago
|
<a-tab-pane v-for="tab of tabs" :key="tab.key" class="select-none">
|
||
2 years ago
|
<template #tab>
|
||
|
<span>
|
||
|
{{ tab.label }}
|
||
|
</span>
|
||
|
</template>
|
||
|
</a-tab-pane>
|
||
|
</a-tabs>
|
||
|
<template v-if="selectedTabKey === 'users'">
|
||
2 years ago
|
<LazyAccountUserList />
|
||
2 years ago
|
</template>
|
||
|
<template v-else-if="selectedTabKey === 'settings'">
|
||
2 years ago
|
<LazyAccountSignupSettings />
|
||
2 years ago
|
</template>
|
||
|
<template v-else-if="selectedTabKey === 'password-reset'">
|
||
2 years ago
|
<LazyAccountResetPassword />
|
||
2 years ago
|
</template>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<style scoped></style>
|