|
|
@ -15,6 +15,8 @@ const { t } = useI18n() |
|
|
|
|
|
|
|
|
|
|
|
const { dashboardUrl } = useDashboard() |
|
|
|
const { dashboardUrl } = useDashboard() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { user: loggedInUser } = useGlobal() |
|
|
|
|
|
|
|
|
|
|
|
const { copy } = useCopy() |
|
|
|
const { copy } = useCopy() |
|
|
|
|
|
|
|
|
|
|
|
const users = ref<UserType[]>([]) |
|
|
|
const users = ref<UserType[]>([]) |
|
|
@ -269,11 +271,13 @@ const openDeleteModal = (user: UserType) => { |
|
|
|
<div>{{ $t('activity.copyPasswordResetURL') }}</div> |
|
|
|
<div>{{ $t('activity.copyPasswordResetURL') }}</div> |
|
|
|
</NcMenuItem> |
|
|
|
</NcMenuItem> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<NcDivider v-if="!el.roles?.includes('super')" /> |
|
|
|
<template v-if="el.id !== loggedInUser?.id"> |
|
|
|
<NcMenuItem data-rec="true" class="!text-red-500 !hover:bg-red-50" @click="openDeleteModal(el)"> |
|
|
|
<NcDivider v-if="!el.roles?.includes('super')" /> |
|
|
|
<MaterialSymbolsDeleteOutlineRounded /> |
|
|
|
<NcMenuItem data-rec="true" class="!text-red-500 !hover:bg-red-50" @click="openDeleteModal(el)"> |
|
|
|
{{ $t('general.remove') }} {{ $t('objects.user') }} |
|
|
|
<MaterialSymbolsDeleteOutlineRounded /> |
|
|
|
</NcMenuItem> |
|
|
|
{{ $t('general.remove') }} {{ $t('objects.user') }} |
|
|
|
|
|
|
|
</NcMenuItem> |
|
|
|
|
|
|
|
</template> |
|
|
|
</NcMenu> |
|
|
|
</NcMenu> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</NcDropdown> |
|
|
|
</NcDropdown> |
|
|
|