diff options
Diffstat (limited to 'app/assets/javascripts/issues/sentry_error_stack_trace')
-rw-r--r-- | app/assets/javascripts/issues/sentry_error_stack_trace/components/sentry_error_stack_trace.vue | 43 | ||||
-rw-r--r-- | app/assets/javascripts/issues/sentry_error_stack_trace/index.js | 22 |
2 files changed, 0 insertions, 65 deletions
diff --git a/app/assets/javascripts/issues/sentry_error_stack_trace/components/sentry_error_stack_trace.vue b/app/assets/javascripts/issues/sentry_error_stack_trace/components/sentry_error_stack_trace.vue deleted file mode 100644 index 1530e9a15b5..00000000000 --- a/app/assets/javascripts/issues/sentry_error_stack_trace/components/sentry_error_stack_trace.vue +++ /dev/null @@ -1,43 +0,0 @@ -<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> diff --git a/app/assets/javascripts/issues/sentry_error_stack_trace/index.js b/app/assets/javascripts/issues/sentry_error_stack_trace/index.js deleted file mode 100644 index 8e9ee25e7a8..00000000000 --- a/app/assets/javascripts/issues/sentry_error_stack_trace/index.js +++ /dev/null @@ -1,22 +0,0 @@ -import Vue from 'vue'; -import store from '~/error_tracking/store'; -import SentryErrorStackTrace from './components/sentry_error_stack_trace.vue'; - -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 }, - }), - }); - } -} |