Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/app/static/feedback/feedback.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Component } from '@angular/core';
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
import { environment } from '../../../environments/environment';

@Component({
selector: 'app-feedback',
Expand All @@ -9,10 +10,9 @@ import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
styleUrls: ['./feedback.component.scss']
})
export class FeedbackComponent {
private formUrl = 'https://docs.google.com/forms/d/e/1FAIpQLSfID5F6is5J7GSJUlFzIYZ7FOsXEebjLjLZwXhLdFPELVBVMQ/viewform?usp=dialog';
safeFormUrl: SafeResourceUrl;

constructor(private sanitizer: DomSanitizer) {
this.safeFormUrl = this.sanitizer.bypassSecurityTrustResourceUrl(this.formUrl);
this.safeFormUrl = this.sanitizer.bypassSecurityTrustResourceUrl(environment.HPO_FEEDBACK_FORM_URL);
}
}
4 changes: 3 additions & 1 deletion src/environments/environment.dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@ export const environment = {
MAXO_ANNOTATION_FILE_PURL: 'https://purl.obolibrary.org/obo/maxo/maxo-annotations.tsv',
HPO_GITHUB_REPO_URL:'https://api.github.com/repos/obophenotype/human-phenotype-ontology',
ONTO_RELEASE_NO_EXT: 'https://github.com/obophenotype/human-phenotype-ontology/releases/latest/download/',
HPO_RELEASES: 'https://github.com/obophenotype/human-phenotype-ontology/releases'
HPO_RELEASES: 'https://github.com/obophenotype/human-phenotype-ontology/releases',
// Feedback Form
HPO_FEEDBACK_FORM_URL: 'https://docs.google.com/forms/d/e/1FAIpQLSfID5F6is5J7GSJUlFzIYZ7FOsXEebjLjLZwXhLdFPELVBVMQ/viewform?usp=dialog'
};
4 changes: 3 additions & 1 deletion src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,7 @@ export const environment = {
MAXO_ANNOTATION_FILE_PURL: 'https://purl.obolibrary.org/obo/maxo/maxo-annotations.tsv',
HPO_GITHUB_REPO_URL:'https://api.github.com/repos/obophenotype/human-phenotype-ontology',
ONTO_RELEASE_NO_EXT: 'https://github.com/obophenotype/human-phenotype-ontology/releases/latest/download/hp',
HPO_RELEASES: 'https://github.com/obophenotype/human-phenotype-ontology/releases'
HPO_RELEASES: 'https://github.com/obophenotype/human-phenotype-ontology/releases',
// Feedback Form
HPO_FEEDBACK_FORM_URL: 'https://docs.google.com/forms/d/e/1FAIpQLSfID5F6is5J7GSJUlFzIYZ7FOsXEebjLjLZwXhLdFPELVBVMQ/viewform?usp=dialog'
};
4 changes: 3 additions & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export const environment = {
MAXO_ANNOTATION_FILE_PURL: 'https://purl.obolibrary.org/obo/maxo/maxo-annotations.tsv',
HPO_GITHUB_REPO_URL:'https://api.github.com/repos/obophenotype/human-phenotype-ontology',
ONTO_RELEASE_NO_EXT: 'https://github.com/obophenotype/human-phenotype-ontology/releases/latest/download/hp',
HPO_RELEASES: 'https://github.com/obophenotype/human-phenotype-ontology/releases'
HPO_RELEASES: 'https://github.com/obophenotype/human-phenotype-ontology/releases',
// Feedback Form
HPO_FEEDBACK_FORM_URL: 'https://docs.google.com/forms/d/e/1FAIpQLSfID5F6is5J7GSJUlFzIYZ7FOsXEebjLjLZwXhLdFPELVBVMQ/viewform?usp=dialog'
};