debian-mirror-gitlab/app/assets/javascripts/vue_shared/plugins/global_toast.js
2023-05-27 22:25:52 +05:30

9 lines
202 B
JavaScript

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