debian-mirror-gitlab/app/assets/javascripts/vue_shared/plugins/global_toast.js

10 lines
202 B
JavaScript
Raw Normal View History

2019-12-04 20:38:33 +05:30
import Vue from 'vue';
import { GlToast } from '@gitlab/ui';
Vue.use(GlToast);
2019-12-21 20:55:43 +05:30
const instance = new Vue();
2019-12-04 20:38:33 +05:30
export default function showGlobalToast(...args) {
2019-12-21 20:55:43 +05:30
return instance.$toast.show(...args);
2019-12-04 20:38:33 +05:30
}