diff options
author | Fernando Arias <farias@gitlab.com> | 2019-09-11 00:20:20 +0300 |
---|---|---|
committer | Paul Slaughter <pslaughter@gitlab.com> | 2019-09-11 00:20:20 +0300 |
commit | 250660ca2d88556c5305bc855744c6e22cb329f2 (patch) | |
tree | 5544e5d54c748701e5bb13f8c41351dbb49a60e9 /app/assets/javascripts/vue_shared/plugins | |
parent | 95d16dc007f3fe8831f2baa511bbb7bd708baff0 (diff) |
Add global toast module
**Why?**
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/15015#note_210891978
Diffstat (limited to 'app/assets/javascripts/vue_shared/plugins')
-rw-r--r-- | app/assets/javascripts/vue_shared/plugins/global_toast.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/assets/javascripts/vue_shared/plugins/global_toast.js b/app/assets/javascripts/vue_shared/plugins/global_toast.js new file mode 100644 index 00000000000..c0de1cdc615 --- /dev/null +++ b/app/assets/javascripts/vue_shared/plugins/global_toast.js @@ -0,0 +1,8 @@ +import Vue from 'vue'; +import { GlToast } from '@gitlab/ui'; + +Vue.use(GlToast); + +export default function showGlobalToast(...args) { + return Vue.toasted.show(...args); +} |