Welcome to mirror list, hosted at ThFree Co, Russian Federation.

toasts.js « behaviors « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b6ac78cb540d302e13d0ee6a3c1dcae7dc0b1b3a (plain)
1
2
3
4
5
6
7
8
9
export async function initToastMessages() {
  const toasts = document.querySelectorAll('.js-toast-message');
  if (!toasts.length) {
    return;
  }

  const { default: showToast } = await import('~/vue_shared/plugins/global_toast');
  toasts.forEach((toast) => showToast(toast.dataset.message));
}