Fix: Add close event to settings modal on project click (#2651)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user