Skip to content

Commit

Permalink
pref(apps/nuxt): global toast provide for sakai
Browse files Browse the repository at this point in the history
now, toast can normal showing while crossing layout
  • Loading branch information
byronogis committed Dec 3, 2024
1 parent a7a536b commit 6e04042
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/nuxt/app/app.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<script setup lang="ts">
import { VueQueryDevtools } from '@tanstack/vue-query-devtools'
const globalToast = useSakaiToast()
provide(SakaiToastInjectionKey, globalToast)
</script>

<template>
Expand All @@ -8,5 +11,7 @@ import { VueQueryDevtools } from '@tanstack/vue-query-devtools'
<NuxtPage />
</NuxtLayout>

<Toast />

<VueQueryDevtools />
</template>

0 comments on commit 6e04042

Please # to comment.