Files
speckle-server/packages/frontend-2/components/singleton/ToastManager.vue
T

19 lines
461 B
Vue

<template>
<GlobalToastRenderer v-model:notification="notification" />
</template>
<script setup lang="ts">
import { useGlobalToastManager } from '~~/lib/common/composables/toast'
import { GlobalToastRenderer } from '@speckle/ui-components'
const { currentNotification, dismiss } = useGlobalToastManager()
const notification = computed({
get: () => currentNotification.value,
set: (newVal) => {
if (!newVal) {
dismiss()
}
}
})
</script>