diff --git a/src/app/add-id-success/add-id-success.component.html b/src/app/add-id-success/add-id-success.component.html index e55db79..64b1ca1 100644 --- a/src/app/add-id-success/add-id-success.component.html +++ b/src/app/add-id-success/add-id-success.component.html @@ -7,7 +7,7 @@
We've added your ORCID iD
-
{{userOrcidId}}
+
{{orcidUrl}}/{{userOrcidId}}
to {{collections.form.title}}
Close diff --git a/src/app/add-id-success/add-id-success.component.ts b/src/app/add-id-success/add-id-success.component.ts index 070480c..2fa5620 100644 --- a/src/app/add-id-success/add-id-success.component.ts +++ b/src/app/add-id-success/add-id-success.component.ts @@ -7,6 +7,7 @@ import 'rxjs/add/operator/switchMap'; import { Collection } from './../shared/collection/collection'; import { CollectionService } from './../shared/collection/collection.service'; +import { ConfigService } from './../shared/config/config.service'; @Component({ selector: 'app-add-id-success', @@ -16,16 +17,21 @@ import { CollectionService } from './../shared/collection/collection.service'; export class AddIdSuccessComponent implements OnInit, OnDestroy { public publicKey: string; - private response: any; private sub: any; + public orcidUrl: string; public userOrcidId: string; collections: Collection[]; constructor( private route: ActivatedRoute, - private collectionService: CollectionService + private collectionService: CollectionService, + private configService: ConfigService ) { + this.configService.getConfiguration().subscribe( + config => { + this.orcidUrl = config['ORCID_URL']; + }); } getCollections(): void {