Skip to content

Commit

Permalink
add alert when selectin All Lab units
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzy11 committed Jul 10, 2022
1 parent 0a397f1 commit 4a9b770
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/resources/languages/message_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7689,6 +7689,7 @@ systemuserrole.newpermissions = Add New Permissons
systemuserrole.allLabUnits = All Lab Units
systemuserrole.copypermisions = Copy Permisions From User
systemuserrole.apply = Apply
systemuserrole.select.allLabUnits.warning = Selecting All Lab Units will Overide other Lab Unit Permisions
systemuserrole.instruction = <h3> Roles </h3> \
There are two types of Roles. Global Roles which are set for the entire application and Lab Unit Roles which can be set for all Lab Units or specific Lab Units. <br>\
<br>\
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/languages/message_fr.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7197,6 +7197,7 @@ systemuserrole.allLabUnits = Toutes les unités de laboratoire
systemuserrole.copypermisions = Copier les autorisations de l'utilisateur
systemuserrole.apply = Appliquer
systemuserrole.warning.replace = Avertissement! Toutes les autorisations actuelles seront remplacées !
systemuserrole.select.allLabUnits.warning = La sélection de toutes les unités de laboratoire remplacera les autres autorisations d'unité de laboratoire
systemuserrole.instruction = <h3> Rôles </h3> \
Il existe deux types de rôles. Rôles globaux qui sont définis pour l'ensemble de l'application et rôles d'unité de laboratoire qui peuvent être définis pour toutes les unités de laboratoire ou des unités <br>\
de laboratoire spécifiques. <br>\
Expand Down
1 change: 1 addition & 0 deletions src/main/webapp/pages/systemuser/unifiedSystemUser.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ function mySaveAction() {
var value = selectedLabUnit.options[selectedLabUnit.selectedIndex].value;
console.log(value);
if (value == "1=AllLabUnits") {
alert("<spring:message code="systemuserrole.select.allLabUnits.warning"/>");
document.getElementById("createNewRoles").disabled = true;
}else {
document.getElementById("createNewRoles").disabled = false;
Expand Down

0 comments on commit 4a9b770

Please sign in to comment.