Browse Source

fix: use basesUser to show number of members

pull/8649/head
rohittp 6 months ago
parent
commit
6fdb0f5eb5
  1. 6
      packages/nc-gui/components/project/View.vue

6
packages/nc-gui/components/project/View.vue

@ -10,7 +10,7 @@ const basesStore = useBases()
const { openedProject, activeProjectId, basesUser, bases } = storeToRefs(basesStore) const { openedProject, activeProjectId, basesUser, bases } = storeToRefs(basesStore)
const { activeTables, activeTable } = storeToRefs(useTablesStore()) const { activeTables, activeTable } = storeToRefs(useTablesStore())
const { activeWorkspace, workspaceUserCount } = storeToRefs(useWorkspace()) const { activeWorkspace } = storeToRefs(useWorkspace())
const { navigateToProjectPage } = useBase() const { navigateToProjectPage } = useBase()
@ -43,9 +43,7 @@ const { isMobileMode } = useGlobal()
const baseSettingsState = ref('') const baseSettingsState = ref('')
const userCount = computed(() => const userCount = computed(() => (activeProjectId.value ? basesUser.value.get(activeProjectId.value)?.length : 0))
isEeUI ? workspaceUserCount : activeProjectId.value ? basesUser.value.get(activeProjectId.value)?.length : 0,
)
watch( watch(
() => route.value.query?.page, () => route.value.query?.page,

Loading…
Cancel
Save