From 26aded3d1cc885c1dd26de574dbbe820f878c1b8 Mon Sep 17 00:00:00 2001 From: Shaun Lum Date: Mon, 9 Dec 2024 19:30:48 -0800 Subject: [PATCH] fixed GRADA2-3167 and GRAD2-3168 --- backend/src/routes/auth.js | 2 +- .../Batch/Forms/DistrunUserForm.vue | 23 ++++++++++++------- .../Forms/FormInputs/DistributionInput.vue | 15 +++++++++--- .../Batch/Forms/RegenerateCertificateForm.vue | 6 +++-- 4 files changed, 32 insertions(+), 14 deletions(-) diff --git a/backend/src/routes/auth.js b/backend/src/routes/auth.js index 8634611d6..ba94301a1 100644 --- a/backend/src/routes/auth.js +++ b/backend/src/routes/auth.js @@ -40,7 +40,7 @@ router.get("/error", (_req, res) => { router.get( "/login", passport.authenticate("oidc", { - failureRedirect: "error" + failureRedirect: "error", }) ); diff --git a/frontend/src/components/Batch/Forms/DistrunUserForm.vue b/frontend/src/components/Batch/Forms/DistrunUserForm.vue index bdf6bf7fc..1fdc31535 100644 --- a/frontend/src/components/Batch/Forms/DistrunUserForm.vue +++ b/frontend/src/components/Batch/Forms/DistrunUserForm.vue @@ -203,8 +203,8 @@ :disabled=" step == 0 || (step == 1 && - (getCredential !== 'Blank certificate print' || - getCredential !== 'Blank transcript print')) + getCredential !== 'Blank certificate print' && + getCredential !== 'Blank transcript print') " variant="outlined" >Back - + Where diff --git a/frontend/src/components/Batch/Forms/RegenerateCertificateForm.vue b/frontend/src/components/Batch/Forms/RegenerateCertificateForm.vue index 51620b5e5..ed5812247 100644 --- a/frontend/src/components/Batch/Forms/RegenerateCertificateForm.vue +++ b/frontend/src/components/Batch/Forms/RegenerateCertificateForm.vue @@ -294,14 +294,16 @@ export default { requestTemplate ); try { + let response; if (this.getGroup == "all") { - let response = await BatchProcessingService.runCERTREGEN_ALL(); + response = await BatchProcessingService.runCERTREGEN_ALL(); } else { - let response = await BatchProcessingService.runCERTREGEN( + response = await BatchProcessingService.runCERTREGEN( requestPayload, this.getBatchRequestCrontime ); } + console.log("returned"); this.batchLoading = false; if (this.getBatchRequestCrontime) {