Files
speckle-server/packages/frontend-2/plugins/portal.ts
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

12 lines
260 B
TypeScript

import PortalVue from 'portal-vue'
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(PortalVue)
if (import.meta.client) {
const div = document.createElement('div')
div.id = 'toast-portal'
document.body.appendChild(div)
}
})