Skip to content
Snippets Groups Projects

Party registration workflow

Closed Labros Papadopoulos requested to merge party-registration-workflow into develop
2 files
+ 8
7
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -96,15 +96,16 @@ export class EditIndividualsComponent implements OnInit {
if (this.authService.portalUser && this.authService.portalUser.id === this.individualID) {
this.individualID = "myuser"
}
this.retrieveIndividual()
for(var val of this.authService.portalUserJWT.realm_access.roles){
if (val ==='TESTBED_PROVIDER') {
this.testbedProvider=true
this.retrieveGeographicSite()
console.log(this.geographicSite)
}
}
this.retrieveIndividual()
} else {
for(var val of this.authService.portalUserJWT.realm_access.roles){
if (val ==='TESTBED_PROVIDER') {
@@ -229,7 +230,7 @@ export class EditIndividualsComponent implements OnInit {
}
retrieveGeographicSite(){
this.geographicSiteService.retrieveGeographicSite("myuser").subscribe(
this.geographicSiteService.retrieveGeographicSite(this.individual.id).subscribe(
data => {
this.geographicSite = data
if (this.geographicSite.place[0].geographicAddress.city!==null){
@@ -330,7 +331,7 @@ export class EditIndividualsComponent implements OnInit {
)
}
else {
this.geographicSiteService.patchGeographicSite("myuser",updateObj).subscribe(
this.geographicSiteService.patchGeographicSite(id,updateObj).subscribe(
data => { updatedGeographicSite = data },
error => console.error(error),
() => {
Loading