Fix: Add close event to settings modal on project click (#2651)

This commit is contained in:
Mike
2024-08-13 15:27:29 +02:00
committed by GitHub
parent 838d875b29
commit 3b11618c03
2 changed files with 6 additions and 0 deletions
@@ -84,6 +84,7 @@
]"
:user="user"
:workspace-id="targetWorkspaceId"
@close="isOpen = false"
/>
</div>
</LayoutDialog>
@@ -110,6 +110,10 @@ import { isProject } from '~~/lib/server-management/helpers/utils'
import { useDebouncedTextInput } from '@speckle/ui-components'
import { usePaginatedQuery } from '~/lib/common/composables/graphql'
const emit = defineEmits<{
(e: 'close'): void
}>()
const { on, bind, value: search } = useDebouncedTextInput()
const router = useRouter()
@@ -147,5 +151,6 @@ const openProjectDeleteDialog = (item: ItemType) => {
const handleProjectClick = (item: ItemType) => {
router.push(`/projects/${item.id}`)
emit('close')
}
</script>