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

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

export default function initSentryErrorStacktrace() {
  const sentryErrorStackTraceEl = document.querySelector('#js-sentry-error-stack-trace');
  if (sentryErrorStackTraceEl) {
    const { issueStackTracePath } = sentryErrorStackTraceEl.dataset;
    // eslint-disable-next-line no-new
    new Vue({
      el: sentryErrorStackTraceEl,
      components: {
        SentryErrorStackTrace,
      },
      store,
      render: createElement =>
        createElement('sentry-error-stack-trace', {
          props: { issueStackTracePath },
        }),
    });
  }
}