From efb1eef436912a90ae16718eb67c791fd572ea5a Mon Sep 17 00:00:00 2001 From: Freya Gustavsson Date: Mon, 19 Aug 2024 12:46:12 +0200 Subject: [PATCH] fix: Always show build log for SRPM if it exists This makes the build log always visible as if it returns from packit. Otherwise users would not get any logs when an SRPM build has failed, meaning they would have to chase it down through the link Takes up on results from #371 --- frontend/src/components/srpm/SRPMBuild.tsx | 26 +++++++++------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/frontend/src/components/srpm/SRPMBuild.tsx b/frontend/src/components/srpm/SRPMBuild.tsx index 707dd37..45724c1 100644 --- a/frontend/src/components/srpm/SRPMBuild.tsx +++ b/frontend/src/components/srpm/SRPMBuild.tsx @@ -116,23 +116,17 @@ export const SRPMBuild = () => { Copr build {" "} + {data.logs_url ? ( + + Build logs + + ) : ( + <> + )} {data.url ? ( - <> - {" "} - ( - - Logs - - ) ( - - Results - - ) - + + Results + ) : ( <> )}