nova-ui/plugins/vue-notification.ts

13 lines
286 B
TypeScript
Raw Normal View History

2022-12-04 09:02:30 +03:00
import Vue from 'vue'
import Notifications, { NotificationOptions } from 'vue-notification'
import { Inject } from '@/types'
Vue.use(Notifications, {
closeOnClick: false,
})
export default (_: never, inject: Inject<NotificationOptions>) => {
inject('notification', Vue.notify)
}