Skip to content

Commit

Permalink
Show error when approval levels can not be loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Markionium committed Oct 25, 2015
1 parent b6b0875 commit 6a5a8a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/main/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,9 @@ function appController(periodService, $scope, currentUser, mechanismsService,
self.updateTitle();
}
organisationunitsService.currentOrganisationUnit.level = $scope.approvalLevel.level;
})
.catch(function () {
toastr.error('Unable to load your Data Approval Levels. (Please submit a ticket)');
});
});

Expand All @@ -391,6 +394,9 @@ function appController(periodService, $scope, currentUser, mechanismsService,
self.tabs.submit.state = true;
self.tabs.submit.name = ['Submit'];
}
})
.catch(function () {
toastr.error('Unable to load Data Approval levels, yours or all. (Please submit a ticket)');
});

//When the dataset group is changed update the filter types and the datasets
Expand Down
2 changes: 1 addition & 1 deletion src/main/manifest.webapp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"0.4.6","name":"Data Approval","description":"Approvals app for PEPFAR","icons":{"48":"img/icons/dataapproval.png"},"developer":{"url":"http://www.dhis2.org","name":"Mark Polak","company":"DHIS2 Core Team","email":"[email protected]"},"launch_path":"index.html?v=0.4.6","default_locale":"en","activities":{"dhis":{"href":"*"}}}
{"version":"0.4.7","name":"Data Approval","description":"Approvals app for PEPFAR","icons":{"48":"img/icons/dataapproval.png"},"developer":{"url":"http://www.dhis2.org","name":"Mark Polak","company":"DHIS2 Core Team","email":"[email protected]"},"launch_path":"index.html?v=0.4.7","default_locale":"en","activities":{"dhis":{"href":"*"}}}

0 comments on commit 6a5a8a2

Please sign in to comment.