From 0bbaf1dbec348561ec819ecef4f25527881861a6 Mon Sep 17 00:00:00 2001 From: kapr200 Date: Wed, 25 Sep 2024 14:51:26 +0200 Subject: [PATCH] Do not show instructions for failed build Fixes #383 --- frontend/src/components/copr/CoprBuild.tsx | 73 +++++++++++----------- 1 file changed, 38 insertions(+), 35 deletions(-) diff --git a/frontend/src/components/copr/CoprBuild.tsx b/frontend/src/components/copr/CoprBuild.tsx index 0e14cc3..36ad196 100644 --- a/frontend/src/components/copr/CoprBuild.tsx +++ b/frontend/src/components/copr/CoprBuild.tsx @@ -75,41 +75,44 @@ export const CoprBuild = () => { - - - - - You can install the built RPMs by following these steps: - - -
- - - sudo dnf install -y dnf-plugins-core - - - - sudo dnf copr enable {data.copr_owner}/{data.copr_project} - - - {data.built_packages ? ( - - - sudo dnf install -y{" "} - {getPackagesToInstall(data.built_packages).join(" ")} - - - ) : ( - <> - )} - - -
- Please note that the RPMs should be used only in a testing - environment. -
-
-
+ + {data.built_packages ? ( + <> + + + + + You can install the built RPMs by following these steps: + + +
+ + + sudo dnf install -y dnf-plugins-core + + + + sudo dnf copr enable {data.copr_owner}/{data.copr_project} + + + + + sudo dnf install -y{" "} + {getPackagesToInstall(data.built_packages).join(" ")} + + + + +
+ Please note that the RPMs should be used only in a testing + environment. +
+
+
+ + ) : ( + <> + )} );