Browse Source

fix: filtered collaborator issue

pull/7342/head
Ramesh Mane 11 months ago
parent
commit
e8059a6d1e
  1. 8
      packages/nc-gui/components/project/AccessSettings.vue

8
packages/nc-gui/components/project/AccessSettings.vue

@ -39,8 +39,12 @@ const isLoading = ref(false)
const isSearching = ref(false)
const accessibleRoles = ref<(typeof ProjectRoles)[keyof typeof ProjectRoles][]>([])
const filteredCollaborators = computed(() =>
collaborators.value.filter((collab) => collab.email.toLowerCase().includes(userSearchText.value.toLowerCase())),
)
const sortedCollaborators = computed(() => {
return handleGetSortedData(collaborators.value, sorts.value)
return handleGetSortedData(filteredCollaborators.value, sorts.value)
})
const loadCollaborators = async () => {
@ -178,7 +182,7 @@ onMounted(async () => {
</span>
<LazyAccountUserMenu :direction="sortDirection.email" field="email" :handle-user-sort="saveOrUpdate" />
</div>
<div class="text-gray-700 date-joined-grid">{{ $t('title.dateJoined') }}</div>
<div class="text-gray-700 user-access-grid flex items-center space-x-2">
<span>
{{ $t('general.access') }}

Loading…
Cancel
Save