updating wording of UI

This commit is contained in:
frankknoll
2023-11-07 17:57:29 +01:00
parent 2f05786be6
commit 77e37685c4
4 changed files with 13839 additions and 139 deletions

File diff suppressed because one or more lines are too long

View File

@@ -17,11 +17,12 @@ class PrrByKeyTableView {
displayPrrByKeyTable4Value(value) { displayPrrByKeyTable4Value(value) {
UIUtils.disableButton(this.#downloadPrrByKeyTableButton); UIUtils.disableButton(this.#downloadPrrByKeyTableButton);
this.#prrByKeyProvider(value) this.#prrByKeyProvider(value)
.then(prrByKey => { .then(
this.#value = value; prrByKey => {
this.#prrByKeyTable.display(prrByKey); this.#value = value;
UIUtils.enableButton(this.#downloadPrrByKeyTableButton); this.#prrByKeyTable.display(prrByKey);
}); UIUtils.enableButton(this.#downloadPrrByKeyTableButton);
});
} }
#initializeButton(downloadPrrByKeyTableButton) { #initializeButton(downloadPrrByKeyTableButton) {

View File

@@ -1,10 +1,10 @@
class PrrByVaccineProvider { class PrrByVaccineProvider {
static getPrrByVaccine(symptom) { static getPrrByVaccine(symptom) {
return fetch(`../data/ProportionalReportingRatios/symptoms/${symptom}.json`).then(response => response.json()); return fetch(`../data/SymptomsCausedByCOVIDLots/ProportionalReportingRatios/symptoms/${symptom}.json`).then(response => response.json());
} }
static getPrrBySymptom(vaccine) { static getPrrBySymptom(vaccine) {
return fetch(`../data/ProportionalReportingRatios/vaccines/${vaccine}.json`).then(response => response.json()); return fetch(`../data/SymptomsCausedByCOVIDLots/ProportionalReportingRatios/vaccines/${vaccine}.json`).then(response => response.json());
} }
} }

View File

@@ -17,7 +17,7 @@ class PrrByVaccineTableView {
#createPrrByVaccineTable(tableElement) { #createPrrByVaccineTable(tableElement) {
return new PrrByKeyTable({ return new PrrByKeyTable({
tableElement: tableElement, tableElement: tableElement,
keyColumnName: 'Vaccine', keyColumnName: 'Batch',
prrColumnName: 'Proportional Reporting Ratio', prrColumnName: 'Proportional Reporting Ratio',
shallMarkRowIfPrrTooHigh: true shallMarkRowIfPrrTooHigh: true
}); });