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

sentry_error_stack_trace.vue « components « 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: 1530e9a15b5f694fe31be201993820174bdb89f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<script>
import { GlLoadingIcon } from '@gitlab/ui';
import { mapActions, mapState, mapGetters } from 'vuex';
import Stacktrace from '~/error_tracking/components/stacktrace.vue';

export default {
  name: 'SentryErrorStackTrace',
  components: {
    Stacktrace,
    GlLoadingIcon,
  },
  props: {
    issueStackTracePath: {
      type: String,
      required: true,
    },
  },
  computed: {
    ...mapState('details', ['loadingStacktrace', 'stacktraceData']),
    ...mapGetters('details', ['stacktrace']),
  },
  mounted() {
    this.startPollingStacktrace(this.issueStackTracePath);
  },
  methods: {
    ...mapActions('details', ['startPollingStacktrace']),
  },
};
</script>

<template>
  <div>
    <div :class="{ 'border-bottom-0': loadingStacktrace }" class="card card-slim mt-4 mb-0">
      <div class="card-header border-bottom-0">
        <h5 class="card-title my-1">{{ __('Stack trace') }}</h5>
      </div>
    </div>
    <div v-if="loadingStacktrace" class="card">
      <gl-loading-icon class="py-2" label="Fetching stack trace" size="sm" />
    </div>
    <stacktrace v-else :entries="stacktrace" />
  </div>
</template>