Commit 7be5c231 authored by Regis's avatar Regis

handle details path if no path

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