Commit 6acbfdff authored by bsatyanarayana-nisum-com's avatar bsatyanarayana-nisum-com Committed by tdutta-nisum-com

MT-95_My_Org_Screen_data_not_populated (#28)

parent 66679862
......@@ -79,6 +79,11 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
$scope.empSearchId = "";
$scope.getUserRoles();
}
$scope.refreshPageOrg = function(){
$scope.getOrgEmps();
}
var gridOptionsReport = {
paginationPageSizes : [ 10, 20, 30, 40, 50, 100],
paginationPageSize : 10,
......@@ -107,6 +112,18 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
});
};
$scope.getOrgEmps = function(){
$http({
method : "GET",
url : appConfig.appUri + "user/getUserRoles"
}).then(function mySuccess(response) {
$scope.gridOptionsOrgView.data = response.data;
}, function myError(response) {
showAlert("Something went wrong while fetching data!!!");
$scope.gridOptionsOrgView.data = [];
});
};
function showAlert(message) {
$mdDialog.show($mdDialog.alert().parent(
angular.element(document.querySelector('#popupContainer')))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment