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 { GlToast } from '@gitlab/ui';
2021-03-11 19:13:27 +05:30
import Vue from 'vue';
2019-12-04 20:38:33 +05:30
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
}