Skip to content

Commit

Permalink
Update ProjectList.vue (#3734)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwallacespeckle authored Dec 20, 2024
1 parent d54eeb5 commit 1a3bb53
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/frontend-2/components/workspace/ProjectList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
@show-new-project-dialog="openNewProject = true"
@show-invite-dialog="showInviteDialog = true"
/>
<div v-if="projects?.totalCount" class="mt-2 lg:mt-4">
<div v-if="showSearchBar" class="mt-2 lg:mt-4">
<FormTextInput
name="modelsearch"
:show-label="false"
Expand Down Expand Up @@ -221,12 +221,15 @@ const isWorkspaceGuest = computed(() => workspace.value?.role === Roles.Workspac
const isWorkspaceAdmin = computed(() => workspace.value?.role === Roles.Workspace.Admin)
const showLoadingBar = computed(() => {
const isLoading =
areQueriesLoading.value || (!!search.value && !projects.value?.items?.length)
const isLoading = areQueriesLoading.value || (!!search.value && query.loading.value)
return isLoading
})
const showSearchBar = computed(() => {
return projects?.value?.totalCount || search.value
})
const clearSearch = () => {
search.value = ''
selectedRoles.value = []
Expand Down

0 comments on commit 1a3bb53

Please sign in to comment.