From f57e82d8c734e59977c39bc6a0139174cb7f0649 Mon Sep 17 00:00:00 2001 From: "Christopher Lott (cl778h)" Date: Thu, 24 Aug 2017 14:34:31 -0400 Subject: 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) --- .../client/app/views/role/role-list-controller.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ecomp-portal-FE-common/client/app/views/role') 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){ -- cgit 1.2.3-korg