Commit 06c2e314 authored by mfluharty's avatar mfluharty

Conditionally render test case file

The gl-friendly-wrap component gets angry when file is null
And it doesn't make sense to render a copy button for a null file either
parent be05bfda
......@@ -97,8 +97,13 @@ export default {
<div class="table-section section-10 section-wrap">
<div role="rowheader" class="table-mobile-header">{{ __('Filename') }}</div>
<div class="table-mobile-content gl-md-pr-2 gl-overflow-wrap-break">
<gl-friendly-wrap :symbols="$options.wrapSymbols" :text="testCase.file" />
<gl-friendly-wrap
v-if="testCase.file"
:symbols="$options.wrapSymbols"
:text="testCase.file"
/>
<gl-button
v-if="testCase.file"
v-gl-tooltip
size="small"
category="tertiary"
......
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