Files
speckle-server/packages/frontend-2/components/singleton/Managers.vue
T
andrewwallacespeckle 614fdbb14e fix(fe2): Make toasts clickable when dialogs are open (#3176)
* Add portal to dialog

* Changes from talk with Fabs
2024-10-02 11:07:46 +01:00

17 lines
491 B
Vue

<template>
<div v-if="hasLock">
<ClientOnly>
<SingletonToastManager />
</ClientOnly>
<SingletonAppErrorStateManager />
</div>
<div v-else />
</template>
<script setup lang="ts">
// This just wraps all global singleton/manager components that should be always available in all layouts
import { useLock } from '~~/lib/common/composables/singleton'
// Protection against component being mounted multiple times
const { hasLock } = useLock('SingletonManagers')
</script>