Commit d982619c authored by Phil Hughes's avatar Phil Hughes

Prettify error_details.vue component

parent 313bcadb
...@@ -251,8 +251,8 @@ export default { ...@@ -251,8 +251,8 @@ export default {
<li> <li>
<strong class="bold">{{ __('Sentry event') }}:</strong> <strong class="bold">{{ __('Sentry event') }}:</strong>
<gl-link <gl-link
class="d-inline-flex align-items-center"
v-track-event="trackClickErrorLinkToSentryOptions(GQLerror.externalUrl)" v-track-event="trackClickErrorLinkToSentryOptions(GQLerror.externalUrl)"
class="d-inline-flex align-items-center"
:href="GQLerror.externalUrl" :href="GQLerror.externalUrl"
target="_blank" target="_blank"
> >
...@@ -264,7 +264,9 @@ export default { ...@@ -264,7 +264,9 @@ export default {
<strong class="bold">{{ __('First seen') }}:</strong> <strong class="bold">{{ __('First seen') }}:</strong>
{{ formatDate(GQLerror.firstSeen) }} {{ formatDate(GQLerror.firstSeen) }}
<gl-link :href="firstReleaseLink" target="_blank"> <gl-link :href="firstReleaseLink" target="_blank">
<span>{{ __('Release') }}: {{ GQLerror.firstReleaseShortVersion.substr(0, 10) }}</span> <span>
{{ __('Release') }}: {{ GQLerror.firstReleaseShortVersion.substr(0, 10) }}
</span>
</gl-link> </gl-link>
</li> </li>
<li v-if="GQLerror.lastReleaseShortVersion"> <li v-if="GQLerror.lastReleaseShortVersion">
......
...@@ -266,7 +266,7 @@ describe('ErrorDetails', () => { ...@@ -266,7 +266,7 @@ describe('ErrorDetails', () => {
}); });
}); });
it('should display a link', () => { it('should not display a link', () => {
mocks.$apollo.queries.GQLerror.loading = false; mocks.$apollo.queries.GQLerror.loading = false;
wrapper.setData({ wrapper.setData({
GQLerror: { 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