mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-23 03:59:30 -07:00
fix enabled/disabled checkboxes
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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!
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user