From a12a7c171d43c86f7fcfe67b1431ee1e35258f1e Mon Sep 17 00:00:00 2001 From: sonaliTekdi <136320452+sonaliTekdi@users.noreply.github.com> Date: Thu, 12 Dec 2024 15:02:21 +0530 Subject: [PATCH] Task #231766 - [FE] - To add Decline funtionality at maker side (#30) --- src/assets/config/ui-config/tables.json | 40 +++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/src/assets/config/ui-config/tables.json b/src/assets/config/ui-config/tables.json index ad76d08..9f38c15 100644 --- a/src/assets/config/ui-config/tables.json +++ b/src/assets/config/ui-config/tables.json @@ -648,6 +648,46 @@ "afterActionRemoveRow": true, "replace": "certificateNo", "redirectTo": "/pdf-view/credentials/" + }, + { + "buttonText": "Decline", + "type": "button", + "classes": "dsn-r-btn", + "action": "confirmModal", + "modal": { + "title": "Decline Result", + "titleCss": "titleClr-r", + "bodyVal": ["schoolName"], + "message": "Confirm you are declining result for $schoolName", + "buttons": [ + { + "title": "Yes", + "classes": "btn-primary dsn-r-btn", + "action": "requestCall", + "call": "post", + "headers": { + "Content-Type": "application/json" + }, + "api": "api/inspector/decline", + "successModal": true, + "modal": { + "bodyVal": ["schoolName"], + "title": "You have successfully decline results for $schoolName", + "redirectTo": "/Examiner/list/uploadstudents", + "image": "assets/images/success.png", + "Buttons": [ + { + "title": "Done", + "redirectTo": "/Examiner/list/uploadstudents" + } + ] + } + }, + { + "title": "Cancel" + } + ] + } } ] }