Skip to content

Commit 6188eba

Browse files
Copilotiimpulse
andcommitted
Extract feedback form URL to environment configuration
Co-authored-by: iimpulse <7397665+iimpulse@users.noreply.github.com>
1 parent 0ec71af commit 6188eba

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Component } from '@angular/core';
22
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
3+
import { environment } from '../../../environments/environment';
34

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

1515
constructor(private sanitizer: DomSanitizer) {
16-
this.safeFormUrl = this.sanitizer.bypassSecurityTrustResourceUrl(this.formUrl);
16+
this.safeFormUrl = this.sanitizer.bypassSecurityTrustResourceUrl(environment.HPO_FEEDBACK_FORM_URL);
1717
}
1818
}

src/environments/environment.dev.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,7 @@ export const environment = {
3333
MAXO_ANNOTATION_FILE_PURL: 'https://purl.obolibrary.org/obo/maxo/maxo-annotations.tsv',
3434
HPO_GITHUB_REPO_URL:'https://api.github.com/repos/obophenotype/human-phenotype-ontology',
3535
ONTO_RELEASE_NO_EXT: 'https://github.com/obophenotype/human-phenotype-ontology/releases/latest/download/',
36-
HPO_RELEASES: 'https://github.com/obophenotype/human-phenotype-ontology/releases'
36+
HPO_RELEASES: 'https://github.com/obophenotype/human-phenotype-ontology/releases',
37+
// Feedback Form
38+
HPO_FEEDBACK_FORM_URL: 'https://docs.google.com/forms/d/e/1FAIpQLSfID5F6is5J7GSJUlFzIYZ7FOsXEebjLjLZwXhLdFPELVBVMQ/viewform?usp=dialog'
3739
};

src/environments/environment.prod.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,7 @@ export const environment = {
3434
MAXO_ANNOTATION_FILE_PURL: 'https://purl.obolibrary.org/obo/maxo/maxo-annotations.tsv',
3535
HPO_GITHUB_REPO_URL:'https://api.github.com/repos/obophenotype/human-phenotype-ontology',
3636
ONTO_RELEASE_NO_EXT: 'https://github.com/obophenotype/human-phenotype-ontology/releases/latest/download/hp',
37-
HPO_RELEASES: 'https://github.com/obophenotype/human-phenotype-ontology/releases'
37+
HPO_RELEASES: 'https://github.com/obophenotype/human-phenotype-ontology/releases',
38+
// Feedback Form
39+
HPO_FEEDBACK_FORM_URL: 'https://docs.google.com/forms/d/e/1FAIpQLSfID5F6is5J7GSJUlFzIYZ7FOsXEebjLjLZwXhLdFPELVBVMQ/viewform?usp=dialog'
3840
};

src/environments/environment.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ export const environment = {
3737
MAXO_ANNOTATION_FILE_PURL: 'https://purl.obolibrary.org/obo/maxo/maxo-annotations.tsv',
3838
HPO_GITHUB_REPO_URL:'https://api.github.com/repos/obophenotype/human-phenotype-ontology',
3939
ONTO_RELEASE_NO_EXT: 'https://github.com/obophenotype/human-phenotype-ontology/releases/latest/download/hp',
40-
HPO_RELEASES: 'https://github.com/obophenotype/human-phenotype-ontology/releases'
40+
HPO_RELEASES: 'https://github.com/obophenotype/human-phenotype-ontology/releases',
41+
// Feedback Form
42+
HPO_FEEDBACK_FORM_URL: 'https://docs.google.com/forms/d/e/1FAIpQLSfID5F6is5J7GSJUlFzIYZ7FOsXEebjLjLZwXhLdFPELVBVMQ/viewform?usp=dialog'
4143
};
4244

0 commit comments

Comments
 (0)