7e01c6f769
* WIP error dialog * import error reporting * dialog content memoization * dialog work * more cleanup * apollo cache adjustments * add jobId to uploads table * fix showing old pending version state * feat(fe2): prevent user from leaving page if active uploads (#5017) * feat(fe2): prevent user leaving if active uploads * fixxes
18 lines
530 B
Vue
18 lines
530 B
Vue
<template>
|
|
<div v-if="hasLock">
|
|
<ClientOnly>
|
|
<SingletonToastManager />
|
|
</ClientOnly>
|
|
<SingletonFileUploadErrorDialog />
|
|
<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>
|