summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-FE-common/client/app/views/role
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-portal-FE-common/client/app/views/role')
-rw-r--r--ecomp-portal-FE-common/client/app/views/role/popup_createedit_role.html2
-rw-r--r--ecomp-portal-FE-common/client/app/views/role/role-list-controller.js2
2 files changed, 1 insertions, 3 deletions
diff --git a/ecomp-portal-FE-common/client/app/views/role/popup_createedit_role.html b/ecomp-portal-FE-common/client/app/views/role/popup_createedit_role.html
index 5d4fc4d4..0429967f 100644
--- a/ecomp-portal-FE-common/client/app/views/role/popup_createedit_role.html
+++ b/ecomp-portal-FE-common/client/app/views/role/popup_createedit_role.html
@@ -130,7 +130,7 @@
<div class="b2b-modal-footer">
<div class="cta-button-group in">
- <button id="button-app-save" class="btn btn-alt btn-small" size="small" ng-click="saveRole(role, editRoleFunction);" href="javascript:void(0)">Save</button>
+ <button id="button-app-save" class="btn btn-alt btn-small" size="small" ng-disabled="!(role.name)" ng-click="saveRole(role, editRoleFunction);" href="javascript:void(0)">Save</button>
<button id="button-app-cancel" class="btn btn-alt btn-small" ng-click="$dismiss('cancel')" role="button" tabindex="0" href="javascript:void(0)">Cancel</button>
</div>
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 b4813114..8765149e 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
@@ -152,11 +152,9 @@ app.controller('roleListController', function ($scope,RoleService, applicationsS
$scope.centralizedApps = res;
for(var i = 0; i<res.length; i++){
if(res[i].appId == 1){
- $scope.getRolesForSelectedCentralizedApp(res[i].appId);
$scope.apps.selectedCentralizedApp = res[i].appId;
return;
}
- $scope.getRolesForSelectedCentralizedApp(res[0].appId);
$scope.apps.selectedCentralizedApp = res[0].appId;
}
}