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

global_alerts.js « behaviors « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 476291e6b47854f87edc15e29c5c6d1c17bd6c3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import Vue from 'vue';

import GlobalAlerts from './components/global_alerts.vue';

export const initGlobalAlerts = () => {
  const el = document.getElementById('js-global-alerts');

  if (!el) return false;

  return new Vue({
    el,
    name: 'GlobalAlertsRoot',
    render(createElement) {
      return createElement(GlobalAlerts);
    },
  });
};