diff options
author | 2018-05-14 17:19:51 -0400 | |
---|---|---|
committer | 2018-05-25 13:39:38 -0400 | |
commit | 2845910b34682056c1949f82e39d9205a26554e9 (patch) | |
tree | 825474a899dc5783e6ea8c4aefd26b6d4c881dfd /ecomp-portal-FE-common/client/app/views/role/role-list-controller.js | |
parent | 485296388748c1efb5737cf7ae9d4a8254681552 (diff) |
Bulk upload changes and music health check apis
Issue-ID: PORTAL-290, PORTAL-291
Bulk upload changes and music health check apis
Change-Id: I63d289d75420658ff4a14385a5106838fa8c32b2
Signed-off-by: Kishore Reddy, Gujja (kg811t) <kg811t@research.att.com>
Diffstat (limited to 'ecomp-portal-FE-common/client/app/views/role/role-list-controller.js')
-rw-r--r-- | ecomp-portal-FE-common/client/app/views/role/role-list-controller.js | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/ecomp-portal-FE-common/client/app/views/role/role-list-controller.js b/ecomp-portal-FE-common/client/app/views/role/role-list-controller.js index 46ff0d73..acfb25e0 100644 --- a/ecomp-portal-FE-common/client/app/views/role/role-list-controller.js +++ b/ecomp-portal-FE-common/client/app/views/role/role-list-controller.js @@ -44,6 +44,7 @@ app.controller('roleListController', function ($scope,RoleService, applicationsS $scope.goToUrl = function(roleIdVal) { $state.go("root.role", {"roleId":roleIdVal}); } + $scope.toggleRole = function(appId, selected, availableRole) { var toggleType = null; if(selected) { @@ -122,8 +123,29 @@ app.controller('roleListController', function ($scope,RoleService, applicationsS }); } }; + + $scope.openBulkUploadRolesAndFunctionsModal = function(appId) { + var modalInstance = $modal.open({ + templateUrl: 'app/views/role/bulk-upload-dialogs/bulk-upload-role-functions-modal.html', + controller: 'BulkRoleAndFunctionsModalCtrl as bulkRoleAndFunctions', + sizeClass: 'modal-medium', + resolve: { + message: function () { + var message = { + appid: appId + }; + return message; + } + } + }); + modalInstance.result.then(function (confirmed) { + if(confirmed == 'confirmed'){ + // update role list table + } + }); + }; - //getCentalizedApps + // getCentalizedApps $scope.getCentralizedApps = function(userId) { RoleService.getCentralizedApps(userId).then(res=> { if (res.length>0) { @@ -193,7 +215,7 @@ app.controller('roleListController', function ($scope,RoleService, applicationsS init(); - //edit Role + // edit Role $scope.editRoleModalPopup = function(appId, availableRole) { $scope.editRole = availableRole; if(appId != undefined && availableRole.id != undefined){ @@ -215,7 +237,7 @@ app.controller('roleListController', function ($scope,RoleService, applicationsS availableRoleFunctions: availableRoleFunctions, appId: $scope.apps.selectedCentralizedApp, role: role - }; + }; return message; } } @@ -232,7 +254,7 @@ app.controller('roleListController', function ($scope,RoleService, applicationsS }; - //add Role + // add Role $scope.addRoleModalPopup = function(appId) { if(appId){ var roleId = 0; |