Commit 78ca6661 authored by Labros Papadopoulos's avatar Labros Papadopoulos
Browse files

add logic in case new individual

parent 78ed1110
Loading
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -102,6 +102,12 @@ export class EditIndividualsComponent implements OnInit {
          }
          }
      this.retrieveIndividual()
      this.retrieveIndividual()
    } else {
    } else {
      for(var val of this.authService.portalUserJWT.realm_access.roles){
        if (val ==='TESTBED_PROVIDER') {
          this.testbedProvider=true

          }
      }
      // this.initNewOrganizationFormArray()
      // this.initNewOrganizationFormArray()
      this.newIndividual = true
      this.newIndividual = true
    }
    }
+3 −1
Original line number Original line Diff line number Diff line
@@ -33,7 +33,9 @@ export class RedirectComponent implements OnInit {
        this.router.navigate(['services', 'individual_update'])
        this.router.navigate(['services', 'individual_update'])
        }
        }
        else {
        else {
      this.router.navigate(['services', 'services_marketplace'])
      // this.router.navigate(['services', 'services_marketplace'])
      this.router.navigate(['services', 'individual_update'])

      }
      }
    }
    }
    else if (activePortal === 'resources') {
    else if (activePortal === 'resources') {