Skip to content

Commit

Permalink
Merge pull request #55 from ORCID/addSuccessFullUrl
Browse files Browse the repository at this point in the history
Add success full url
  • Loading branch information
rcpeters authored May 1, 2017
2 parents d17a8e6 + 515bea6 commit 14657d9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/add-id-success/add-id-success.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="card-block">
<h1 class="mb-3">Thanks!</h1>
<p class="mb-5">We've added your ORCID iD
<br /><span class="font-weight-bold"><a href="{{userOrcidId}}" target="_blank" rel="noopener noreferrer"> <img src="../assets/img/id-icon.svg" width="16" alt="ORCID iD icon" class="id-icon">{{userOrcidId}}</a></span>
<br /><span class="font-weight-bold"><a href="{{userOrcidId}}" target="_blank" rel="noopener noreferrer"> <img src="../assets/img/id-icon.svg" width="16" alt="ORCID iD icon" class="id-icon">{{orcidUrl}}/{{userOrcidId}}</a></span>
<br />to {{collections.form.title}}</p>
<p>
<a routerLink="/{{publicKey}}" class="btn btn-primary">Close</a>
Expand Down
10 changes: 8 additions & 2 deletions src/app/add-id-success/add-id-success.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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 {
Expand Down

0 comments on commit 14657d9

Please sign in to comment.