Enable PGR
Modules are enabled by MDMS config at https://github.com/egovernments/egov-mdms-data/blob/DEV/data/pb/tenant/citymodule.json
Create a new branch for the state if already doesn’t exist from the master of repo https://github.com/egovernments/digit-ui.
...
Code Block |
---|
import { PGRModule, PGRLinks, PGRReducers } from "@egovernments/digit-ui-module-pgr"; const enabledModules = ["PGR"]; window.Digit.ComponentRegistryService.setupRegistry({ PGRLinks, PGRModule, }); |
Changing CSS
Customizing fields in a form
First, add any new component created in the registry,
...
Any new field should be part of additionalDetails
Customizing views
Complaint details table on the details page of any complaint. -
Digit.Customizations.PGR.getComplaintDetailsTableRows
...
Code Block | ||
---|---|---|
| ||
getComplaintDetailsTableRows: ({ id, service, role, t }) => { if (role === "CITIZEN") { return { CS_COMPLAINT_DETAILS_COMPLAINT_NO: id, CS_COMPLAINT_DETAILS_APPLICATION_STATUS: `CS_COMMON_${service.applicationStatus}`, CS_ADDCOMPLAINT_COMPLAINT_TYPE: `SERVICEDEFS.${complaintType}`, CS_ADDCOMPLAINT_COMPLAINT_SUB_TYPE: `SERVICEDEFS.${service.serviceCode.toUpperCase()}`, CS_COMPLAINT_ADDTIONAL_DETAILS: service.description, CS_COMPLAINT_FILED_DATE: Digit.DateUtils.ConvertTimestampToDate(service.auditDetails.createdTime), ES_CREATECOMPLAINT_ADDRESS: [ service.address.landmark, Digit.Utils.locale.getLocalityCode(service.address.locality, service.tenantId), service.address.city, service.address.pincode, ], }; } return {}; } |
FAQ
In addition to any FAQs of the main implementation document.
...