Skip to content
Snippets Groups Projects
Commit d504b4b0 authored by Labros Papadopoulos's avatar Labros Papadopoulos
Browse files

ommit my-user functionality

parent f8defb1c
No related branches found
No related tags found
1 merge request!11Party registration workflow
Pipeline #6584 passed
......@@ -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),
() => {
......
......@@ -21,7 +21,7 @@ export class RedirectComponent implements OnInit {
const activePortal = localStorage.getItem('active_portal')
if (activePortal === 'services') {
this.router.navigate(['services/individual_update', 'myuser'])
this.router.navigate(['services', 'services_marketplace'])
}
else if (activePortal === 'resources') {
......@@ -29,12 +29,12 @@ export class RedirectComponent implements OnInit {
}
else if (activePortal === 'testing') {
this.router.navigate(['testing/individual_update', 'myuser'])
this.router.navigate(['testing', 'service_test_specs'])
}
else if (activePortal === 'products') {
this.router.navigate(['products/individual_update', 'myuser'])
this.router.navigate(['products', 'marketplace'])
}
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment