You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by an...@apache.org on 2019/09/03 11:13:23 UTC

[incubator-dlab] 01/03: [DLAB-1069]: case insensitive group name on create validity check

This is an automated email from the ASF dual-hosted git repository.

ankovalyshyn pushed a commit to branch DLAB-1070
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git

commit 8d3efc701c3c036a138ed28414460eeea9b29cd9
Author: Andriana Kovalyshyn <An...@epam.com>
AuthorDate: Mon Sep 2 15:38:12 2019 +0300

    [DLAB-1069]: case insensitive group name on create validity check
---
 .../resources/webapp/src/app/administration/roles/roles.component.ts  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/services/self-service/src/main/resources/webapp/src/app/administration/roles/roles.component.ts b/services/self-service/src/main/resources/webapp/src/app/administration/roles/roles.component.ts
index 95bd233..0b4cbb3 100644
--- a/services/self-service/src/main/resources/webapp/src/app/administration/roles/roles.component.ts
+++ b/services/self-service/src/main/resources/webapp/src/app/administration/roles/roles.component.ts
@@ -174,9 +174,9 @@ export class RolesComponent implements OnInit {
   }
 
   public groupValidarion(): ValidatorFn {
-    const duplicateList: any = this.groupsData.map(item => item.group);
+    const duplicateList: any = this.groupsData.map(item => item.group.toLowerCase());
     return <ValidatorFn>((control: FormControl) => {
-      if (control.value && duplicateList.includes(CheckUtils.delimitersFiltering(control.value.trim()))) {
+      if (control.value && duplicateList.includes(CheckUtils.delimitersFiltering(control.value.toLowerCase()))) {
         return { duplicate: true };
       }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org