Skip to content

Commit

Permalink
Merge pull request #33759 from dimagi/cs/improve-disbursement
Browse files Browse the repository at this point in the history
Handle request failure on disbursement runs
  • Loading branch information
Charl1996 authored Dec 11, 2023
2 parents 2054aea + f4e8cd1 commit 15ae45f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion corehq/apps/geospatial/static/geospatial/js/geospatial_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ hqDefine("geospatial/js/geospatial_map", [
"hqwebapp/js/initial_page_data",
"knockout",
'geospatial/js/models',
'hqwebapp/js/bootstrap3/alert_user',
'select2/dist/js/select2.full.min',
], function (
$,
initialPageData,
ko,
models
models,
alertUser
) {
const caseMarkerColors = {
'default': "#808080", // Gray
Expand Down Expand Up @@ -152,6 +154,12 @@ hqDefine("geospatial/js/geospatial_map", [
self.handleDisbursementResults(ret['result']);
}
},
error: function () {
alertUser.alert_user(
gettext("Oops! Something went wrong! Please contact admin if the problem persists."), 'danger'
);
self.setBusy(false);
},
});
};

Expand Down

0 comments on commit 15ae45f

Please sign in to comment.