Commit 7951b86e authored by kpcyrd's avatar kpcyrd
Browse files

Only show diffoscope link if has_diffoscope is true

parent f4aa34c3
Pipeline #9861 passed with stage
in 29 seconds
......@@ -13,7 +13,7 @@ function StatusSection(props) {
if (pkg.build_id) {
let build_log_url=`/api/v0/builds/${pkg.build_id}/log`;
let diffoscope_url=`/api/v0/builds/${pkg.build_id}/diffoscope`;
links=<span className="noselect"> <a href={build_log_url} title="build log"><img src="icons/note-16.svg" className="icon" /></a> <a href={diffoscope_url} title="diffoscope"><img src="icons/search-16.svg" className="icon" /></a></span>;
links=<span className="noselect"> <a href={build_log_url} title="build log"><img src="icons/note-16.svg" className="icon" /></a> {pkg.has_diffoscope && <a href={diffoscope_url} title="diffoscope"><img src="icons/search-16.svg" className="icon" /></a>}</span>;
}
return <li key={pkg.name}><p className="subtitle is-6"><a href={url}>{pkg.name} {pkg.version}</a>{links}</p></li>
})}
......
Supports Markdown
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