diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 08:27:35 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 08:27:35 +0000 |
commit | 7e9c479f7de77702622631cff2628a9c8dcbc627 (patch) | |
tree | c8f718a08e110ad7e1894510980d2155a6549197 /app/assets/javascripts/pages/shared/wikis/wikis.js | |
parent | e852b0ae16db4052c1c567d9efa4facc81146e88 (diff) | |
download | gitlab-ce-7e9c479f7de77702622631cff2628a9c8dcbc627.tar.gz |
Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42
Diffstat (limited to 'app/assets/javascripts/pages/shared/wikis/wikis.js')
-rw-r--r-- | app/assets/javascripts/pages/shared/wikis/wikis.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/assets/javascripts/pages/shared/wikis/wikis.js b/app/assets/javascripts/pages/shared/wikis/wikis.js index ab948fd106f..fe9caba351e 100644 --- a/app/assets/javascripts/pages/shared/wikis/wikis.js +++ b/app/assets/javascripts/pages/shared/wikis/wikis.js @@ -1,6 +1,7 @@ import { GlBreakpointInstance as bp } from '@gitlab/ui/dist/utils'; import { s__, sprintf } from '~/locale'; import Tracking from '~/tracking'; +import showToast from '~/vue_shared/plugins/global_toast'; const MARKDOWN_LINK_TEXT = { markdown: '[Link Title](page-slug)', @@ -63,6 +64,7 @@ export default class Wikis { } Wikis.trackPageView(); + Wikis.showToasts(); } handleWikiTitleChange(e) { @@ -116,4 +118,9 @@ export default class Wikis { }, }); } + + static showToasts() { + const toasts = document.querySelectorAll('.js-toast-message'); + toasts.forEach(toast => showToast(toast.dataset.message)); + } } |