Compare commits

...

1 Commits

Author SHA1 Message Date
Dominik Pschenitschni dfeb05af10 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
2025-01-26 18:42:17 +01:00
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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