|
|
@ -154,8 +154,8 @@ const openDeleteModal = (user: UserType) => { |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div data-testid="nc-super-user-list"> |
|
|
|
<div data-testid="nc-super-user-list"> |
|
|
|
<div class="max-w-195 mx-auto"> |
|
|
|
<div class="max-w-195 mx-auto h-full"> |
|
|
|
<div class="text-2xl my-4 text-left font-weight-bold">{{ $t('title.userManagement') }}</div> |
|
|
|
<div class="text-2xl text-left font-weight-bold">{{ $t('title.userManagement') }}</div> |
|
|
|
<div class="py-2 flex gap-4 items-center justify-between"> |
|
|
|
<div class="py-2 flex gap-4 items-center justify-between"> |
|
|
|
<a-input v-model:value="searchText" class="!max-w-90 !rounded-md" placeholder="Search members" @change="loadUsers()"> |
|
|
|
<a-input v-model:value="searchText" class="!max-w-90 !rounded-md" placeholder="Search members" @change="loadUsers()"> |
|
|
|
<template #prefix> |
|
|
|
<template #prefix> |
|
|
@ -172,7 +172,8 @@ const openDeleteModal = (user: UserType) => { |
|
|
|
</NcButton> |
|
|
|
</NcButton> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="w-full mt-5 border-1 rounded-md h-[613px] max-w-250"> |
|
|
|
<div class="mt-3 flex flex-col justify-between"> |
|
|
|
|
|
|
|
<div class="w-full border-1 rounded-md max-w-250 h-160"> |
|
|
|
<div class="flex w-full bg-gray-50 border-b-1"> |
|
|
|
<div class="flex w-full bg-gray-50 border-b-1"> |
|
|
|
<span class="py-3.5 text-gray-500 font-medium text-3.5 w-1/3 text-start pl-10">{{ $t('labels.email') }}</span> |
|
|
|
<span class="py-3.5 text-gray-500 font-medium text-3.5 w-1/3 text-start pl-10">{{ $t('labels.email') }}</span> |
|
|
|
<span class="py-3.5 text-gray-500 font-medium text-3.5 w-1/3 text-start pl-20">{{ $t('objects.role') }}</span> |
|
|
|
<span class="py-3.5 text-gray-500 font-medium text-3.5 w-1/3 text-start pl-20">{{ $t('objects.role') }}</span> |
|
|
@ -271,7 +272,7 @@ const openDeleteModal = (user: UserType) => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</section> |
|
|
|
</section> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-if="pagination.total > 10" class="flex items-center justify-center mt-7"> |
|
|
|
<div v-if="pagination.total > 10" class="flex items-center justify-center mt-4"> |
|
|
|
<a-pagination |
|
|
|
<a-pagination |
|
|
|
v-model:current="currentPage" |
|
|
|
v-model:current="currentPage" |
|
|
|
:total="pagination.total" |
|
|
|
:total="pagination.total" |
|
|
@ -279,6 +280,7 @@ const openDeleteModal = (user: UserType) => { |
|
|
|
@change="loadUsers(currentPage, currentLimit)" |
|
|
|
@change="loadUsers(currentPage, currentLimit)" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
<GeneralDeleteModal v-model:visible="isOpen" entity-name="User" :on-delete="() => deleteUser()"> |
|
|
|
<GeneralDeleteModal v-model:visible="isOpen" entity-name="User" :on-delete="() => deleteUser()"> |
|
|
|
<template #entity-preview> |
|
|
|
<template #entity-preview> |
|
|
|
<span> |
|
|
|
<span> |
|
|
|