Code Review
/
portal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Repair DDL duplicate-index name issue
[portal.git]
/
ecomp-portal-FE-common
/
client
/
app
/
views
/
role
/
role-list-controller.js
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
582706c
..
2ca149c
100644
(file)
--- 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
@@
-42,7
+42,12
@@
app.controller('roleListController', function ($scope,RoleService,confirmBoxServ
} else {
toggleType = "inactivate";
}
} else {
toggleType = "inactivate";
}
-
+ if((availableRole.id == "1") || (availableRole.id =="999"))
+ {
+ confirmBoxService.showInformation(availableRole.name+" role cannot be disabled");
+ availableRole.active=!availableRole.active
+ return;
+ }
confirmBoxService.confirm("You are about to "+toggleType+" the role "+availableRole.name+". Do you want to continue?").then(
function(confirmed){
confirmBoxService.confirm("You are about to "+toggleType+" the role "+availableRole.name+". Do you want to continue?").then(
function(confirmed){