debian-mirror-gitlab/app/assets/javascripts/vue_shared/plugins/global_toast.js
2019-12-21 20:55:43 +05:30

9 lines
202 B
JavaScript

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