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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
209 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);
2021-09-30 23:02:18 +05:30
export 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
}