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

index.js « suggest_web_ide_ci « blob « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: eadf3cd6216dcd3bc57c41433d8ef631e14c4b67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import Vue from 'vue';
import WebIdeAlert from './components/web_ide_alert.vue';

export default el => {
  const { dismissEndpoint, featureId, editPath } = el.dataset;

  // eslint-disable-next-line no-new
  new Vue({
    el,
    render(createElement) {
      return createElement(WebIdeAlert, {
        props: {
          dismissEndpoint,
          featureId,
          editPath,
        },
      });
    },
  });
};