summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-FE-common/client/app/views/role
diff options
context:
space:
mode:
authorChristopher Lott (cl778h) <clott@research.att.com>2017-08-24 14:34:31 -0400
committerChristopher Lott (cl778h) <clott@research.att.com>2017-08-24 15:01:27 -0400
commitf57e82d8c734e59977c39bc6a0139174cb7f0649 (patch)
treea13cad24453a699a572ee8381da6de95b1ca428a /ecomp-portal-FE-common/client/app/views/role
parent978dbcf0a196acbafad72fe1e2478ec0e384f02f (diff)
Repair DDL duplicate-index name issue
This blocked the portal-db container from starting, which blocked the app servers from starting. Issue: PORTAL-80 Change-Id: I4c0b6b378bda29355111b137cae32c8f219d9921 Signed-off-by: Christopher Lott (cl778h) <clott@research.att.com>
Diffstat (limited to 'ecomp-portal-FE-common/client/app/views/role')
-rw-r--r--ecomp-portal-FE-common/client/app/views/role/role-list-controller.js7
1 files changed, 6 insertions, 1 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 582706c5..2ca149cb 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
@@ -42,7 +42,12 @@ app.controller('roleListController', function ($scope,RoleService,confirmBoxServ
} 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){