Compare commits
1 Commits
main
...
fix/notifi
| Author | SHA1 | Date |
|---|---|---|
|
|
dfeb05af10 |
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue