Commit 59ec1084 authored by Martin Wortschack's avatar Martin Wortschack

Merge branch 'ph/fixStaticAnalysis' into 'master'

Prettify error_details.vue component

Closes #197359

See merge request gitlab-org/gitlab!23244
parents 51c80ed5 d982619c
......@@ -251,8 +251,8 @@ export default {
<li>
<strong class="bold">{{ __('Sentry event') }}:</strong>
<gl-link
class="d-inline-flex align-items-center"
v-track-event="trackClickErrorLinkToSentryOptions(GQLerror.externalUrl)"
class="d-inline-flex align-items-center"
:href="GQLerror.externalUrl"
target="_blank"
>
......@@ -264,7 +264,9 @@ export default {
<strong class="bold">{{ __('First seen') }}:</strong>
{{ formatDate(GQLerror.firstSeen) }}
<gl-link :href="firstReleaseLink" target="_blank">
<span>{{ __('Release') }}: {{ GQLerror.firstReleaseShortVersion.substr(0, 10) }}</span>
<span>
{{ __('Release') }}: {{ GQLerror.firstReleaseShortVersion.substr(0, 10) }}
</span>
</gl-link>
</li>
<li v-if="GQLerror.lastReleaseShortVersion">
......
......@@ -266,7 +266,7 @@ describe('ErrorDetails', () => {
});
});
it('should display a link', () => {
it('should not display a link', () => {
mocks.$apollo.queries.GQLerror.loading = false;
wrapper.setData({
GQLerror: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment