Skip to content

Commit

Permalink
#1310 - gramin staging config. use correct props name for filters
Browse files Browse the repository at this point in the history
  • Loading branch information
petmongrels committed Feb 20, 2024
1 parent b3fbf72 commit 9fdf184
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ as_prod_dev: ; $(call _create_config,prod_dev)
as_no_env: ; $(call _create_config,no_env)
as_prod_lfe_dev: ; $(call _create_config,prod_lfe_dev)
as_prod_gramin_dev: ; $(call _create_config,prod_gramin_dev)
as_staging_gramin_dev: ; $(call _create_config,staging_gramin_dev)

as_gramin_staging: ; $(call _create_config,gramin_staging)
as_gramin_staging_dev: ; $(call _create_config,gramin_staging_dev)
Expand Down
3 changes: 2 additions & 1 deletion makefiles/androidDevice.mk
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ run_app_prod: as_prod _run_app
run_app_prod_dev: as_prod_dev _run_app
run_app_no_env: as_no_env _run_app
run_app_prod_lfe_dev: as_prod_lfe_dev _run_app
run_app_prod_rwb_dev: as_prod_rwb_dev _run_app
run_app_prod_gramin_dev: as_prod_gramin_dev _run_app
run_app_staging_gramin_dev: as_staging_gramin_dev _run_app

stop_app:
adb shell am force-stop ${app_android_package_name}
Expand Down
5 changes: 5 additions & 0 deletions packages/openchs-android/config/env/staging_gramin_dev.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"SERVER_URL": "https://staging.rwb.avniproject.org",
"ENV": "ext-dev",
"DISABLE_AUTO_SYNC": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ApprovalListingView extends AbstractComponent {
backFunction: PropTypes.func.isRequired,
reportCardUUID: PropTypes.string.isRequired,
approvalStatus_status: PropTypes.string.isRequired,
reportsFilter: PropTypes.object
reportFilters: PropTypes.object
};

constructor(props, context) {
Expand All @@ -51,9 +51,9 @@ class ApprovalListingView extends AbstractComponent {
}

onFilterChange(filterItem) {
const {reportCardUUID, reportsFilter} = this.props;
const {reportCardUUID, reportFilters} = this.props;
const reportCard = this.getService(EntityService).findByUUID(reportCardUUID, ReportCard.schema.name);
const subjects = this.getService(ReportCardService).getResultForApprovalCardsType(reportCard.standardReportCardType, reportsFilter, filterItem.value);
const subjects = this.getService(ReportCardService).getResultForApprovalCardsType(reportCard.standardReportCardType, reportFilters, filterItem.value);
this.setState({subjects: subjects, formMapping: filterItem.value});
}

Expand Down

0 comments on commit 9fdf184

Please sign in to comment.