debian-mirror-gitlab/app/assets/javascripts/vue_shared/plugins/global_toast.js
2021-09-30 23:02:18 +05:30

9 lines
209 B
JavaScript

import { GlToast } from '@gitlab/ui';
import Vue from 'vue';
Vue.use(GlToast);
export const instance = new Vue();
export default function showGlobalToast(...args) {
return instance.$toast.show(...args);
}