fix enabled/disabled checkboxes

This commit is contained in:
Matt Walsh 2022-12-07 11:02:51 -06:00
parent 49cd15a688
commit 61c10a7d7c
7 changed files with 7 additions and 7 deletions

View file

@ -22,7 +22,7 @@ class Almanac extends WeatherDisplay {
} }
async getData(_weatherParameters) { async getData(_weatherParameters) {
super.getData(_weatherParameters); if (!super.getData(_weatherParameters)) return;
const weatherParameters = _weatherParameters ?? this.weatherParameters; const weatherParameters = _weatherParameters ?? this.weatherParameters;
// get sun/moon data // get sun/moon data

View file

@ -19,7 +19,7 @@ class CurrentWeather extends WeatherDisplay {
} }
async getData(_weatherParameters) { async getData(_weatherParameters) {
super.getData(_weatherParameters); if (!super.getData(_weatherParameters)) return;
const weatherParameters = _weatherParameters ?? this.weatherParameters; const weatherParameters = _weatherParameters ?? this.weatherParameters;
// Load the observations // Load the observations

View file

@ -18,7 +18,7 @@ class ExtendedForecast extends WeatherDisplay {
} }
async getData(_weatherParameters) { async getData(_weatherParameters) {
super.getData(_weatherParameters); if (!super.getData(_weatherParameters)) return;
const weatherParameters = _weatherParameters ?? this.weatherParameters; const weatherParameters = _weatherParameters ?? this.weatherParameters;
// request us or si units // request us or si units

View file

@ -16,7 +16,7 @@ class LatestObservations extends WeatherDisplay {
} }
async getData(_weatherParameters) { async getData(_weatherParameters) {
super.getData(_weatherParameters); if (!super.getData(_weatherParameters)) return;
const weatherParameters = _weatherParameters ?? this.weatherParameters; const weatherParameters = _weatherParameters ?? this.weatherParameters;
// calculate distance to each station // calculate distance to each station

View file

@ -14,7 +14,7 @@ class LocalForecast extends WeatherDisplay {
} }
async getData(_weatherParameters) { async getData(_weatherParameters) {
super.getData(_weatherParameters); if (!super.getData(_weatherParameters)) return;
const weatherParameters = _weatherParameters ?? this.weatherParameters; const weatherParameters = _weatherParameters ?? this.weatherParameters;
// get raw data // get raw data

View file

@ -42,7 +42,7 @@ class Radar extends WeatherDisplay {
} }
async getData(_weatherParameters) { async getData(_weatherParameters) {
super.getData(_weatherParameters); if (!super.getData(_weatherParameters)) return;
const weatherParameters = _weatherParameters ?? this.weatherParameters; const weatherParameters = _weatherParameters ?? this.weatherParameters;
// ALASKA AND HAWAII AREN'T SUPPORTED! // ALASKA AND HAWAII AREN'T SUPPORTED!

View file

@ -20,7 +20,7 @@ class RegionalForecast extends WeatherDisplay {
} }
async getData(_weatherParameters) { async getData(_weatherParameters) {
super.getData(_weatherParameters); if (!super.getData(_weatherParameters)) return;
const weatherParameters = _weatherParameters ?? this.weatherParameters; const weatherParameters = _weatherParameters ?? this.weatherParameters;
// pre-load the base map // pre-load the base map