From fd3d3a5e403ac8b3657039ab464527afbcf89932 Mon Sep 17 00:00:00 2001 From: hahn <axel.hahn@iml.unibe.ch> Date: Thu, 15 Sep 2022 14:17:41 +0200 Subject: [PATCH] add reload button in build page --- public_html/deployment/pages/act_build.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/public_html/deployment/pages/act_build.php b/public_html/deployment/pages/act_build.php index 2dab289d..5da8f9d4 100644 --- a/public_html/deployment/pages/act_build.php +++ b/public_html/deployment/pages/act_build.php @@ -36,6 +36,7 @@ if (!array_key_exists("confirm", $aParams)) { // ------------------------------------------------------------ $sNext = $oPrj->getNextPhase(); $aPhaseData2 = $oPrj->getPhaseInfos($sNext); + $bForceNoCache = isset($aParams['reloadBranches']) ? $aParams['reloadBranches'] : false; $sOut.='<p>' . sprintf(t("page-build-info"), $sNext, $sNext) . '</p>'; @@ -66,7 +67,15 @@ if (!array_key_exists("confirm", $aParams)) { <tbody> <tr> <td class=""> - ' . $oPrj->renderSelectRemoteBranches() . ' + ' . $oPrj->renderSelectRemoteBranches(false, $bForceNoCache) . ' + <form action="?" method="post" enctype="multipart/form-data"> + <input type="hidden" name="reloadBranches" value="1"> + <input type="hidden" name="branchname" value="' . $sBranchname . '"> + <fieldset> + <button type="submit" class="btn btn-default">' . $oHtml->getIcon('refresh').t("page-build-reload-branches") . '</button> + </fieldset> + </form> + </td> <td class=""> ' . $oPrj->renderRepoInfo() . ' -- GitLab