Commit 7be5c231 authored by Regis's avatar Regis

handle details path if no path

parent 49aecb60
......@@ -16,12 +16,16 @@
svg() {
return this.svgs[this.match(this.pipeline.details.status.icon)];
},
detailsPath() {
const { status } = this.pipeline.details;
return status.path ? status.path : '#';
},
},
template: `
<td class="commit-link">
<a
:class='cssClasses'
:href='pipeline.details.status.details_path'
:href='detailsPath'
v-html='svg + pipeline.details.status.text'
>
</a>
......
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