fix: component name collision

We already have a component called Notifications (the ones in the top right). I used now Toster which I borrowed from here https://www.shadcn-vue.com/docs/components/sonner.html
This commit is contained in:
Dominik Pschenitschni 2025-01-26 16:38:03 +01:00
parent b09d0ab711
commit dfeb05af10
3 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<template>
<Notifications
<Toaster
position="bottom left"
:max="2"
class="global-notification"
@ -44,7 +44,7 @@
</div>
</div>
</template>
</Notifications>
</Toaster>
</template>
<style scoped>

View File

@ -54,7 +54,7 @@ const browserLanguage = getBrowserLanguage()
setLanguage(browserLanguage).then(() => {
const app = createApp(App)
app.use(Notifications)
app.use(Notifications, { componentName: 'Toaster' })
app.directive('focus', focus)
app.directive('tooltip', vTooltip)

View File

@ -11,7 +11,7 @@ import type Card from '@/components/misc/Card.vue'
declare module 'vue' {
export interface GlobalComponents {
Icon: FontAwesomeIconFixedTypes
Notifications: FunctionalComponent<Notifications>
Toaster: FunctionalComponent<Notifications>
XButton: typeof XButton,
Modal: typeof Modal,
Card: typeof Card,