|
|
@ -130,13 +130,13 @@ const copyPasswordResetUrl = async (user: User) => { |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div data-testid="nc-super-user-list"> |
|
|
|
<div data-testid="nc-super-user-list"> |
|
|
|
<div class="max-w-[900px] mx-auto"> |
|
|
|
<div class="max-w-[900px] mx-auto"> |
|
|
|
<div class="text-xl my-4 text-left font-weight-bold">User Management</div> |
|
|
|
<div class="text-xl my-4 text-left font-weight-bold">{{ $t('title.userManagement') }}</div> |
|
|
|
<div class="py-2 flex gap-4 items-center"> |
|
|
|
<div class="py-2 flex gap-4 items-center"> |
|
|
|
<a-input-search |
|
|
|
<a-input-search |
|
|
|
v-model:value="searchText" |
|
|
|
v-model:value="searchText" |
|
|
|
size="middle" |
|
|
|
size="middle" |
|
|
|
class="max-w-[300px]" |
|
|
|
class="max-w-[300px]" |
|
|
|
placeholder="Search Users" |
|
|
|
:placeholder="$t('labels.searchUsers')" |
|
|
|
@blur="loadUsers" |
|
|
|
@blur="loadUsers" |
|
|
|
@keydown.enter="loadUsers" |
|
|
|
@keydown.enter="loadUsers" |
|
|
|
> |
|
|
|
> |
|
|
@ -157,7 +157,7 @@ const copyPasswordResetUrl = async (user: User) => { |
|
|
|
> |
|
|
|
> |
|
|
|
<div class="flex items-center gap-1"> |
|
|
|
<div class="flex items-center gap-1"> |
|
|
|
<component :is="iconMap.plus" /> |
|
|
|
<component :is="iconMap.plus" /> |
|
|
|
Invite new user |
|
|
|
{{ $t('activity.inviteUser') }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-button> |
|
|
|
</a-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -186,7 +186,7 @@ const copyPasswordResetUrl = async (user: User) => { |
|
|
|
<a-table-column key="roles" :title="$t('objects.role')" data-index="roles"> |
|
|
|
<a-table-column key="roles" :title="$t('objects.role')" data-index="roles"> |
|
|
|
<template #default="{ record }"> |
|
|
|
<template #default="{ record }"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<div v-if="record.roles.includes('super')" class="font-weight-bold">Super Admin</div> |
|
|
|
<div v-if="record.roles.includes('super')" class="font-weight-bold">{{ $t('labels.superAdmin') }}</div> |
|
|
|
<a-select |
|
|
|
<a-select |
|
|
|
v-else |
|
|
|
v-else |
|
|
|
v-model:value="record.roles" |
|
|
|
v-model:value="record.roles" |
|
|
|