fix: weather CSS card shows empty source name after hard refresh
Lint & Test / test (push) Has been cancelled
Lint & Test / test (push) Has been cancelled
Weather sources cache was not fetched during streams tab load, so the card renderer could not resolve weather source names. Also widened lat/lon inputs from 80px to 100px to fit longer coordinates.
This commit is contained in:
@@ -2110,7 +2110,7 @@
|
||||
}
|
||||
|
||||
.weather-location-field input[type="number"] {
|
||||
width: 80px;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
.composite-layer-drag-handle:active {
|
||||
|
||||
@@ -39,6 +39,7 @@ import {
|
||||
gradientsCache, GradientEntity,
|
||||
audioProcessingTemplatesCache, _cachedAudioProcessingTemplates,
|
||||
audioFilterDefsCache,
|
||||
weatherSourcesCache,
|
||||
} from '../core/state.ts';
|
||||
import { API_BASE, getHeaders, fetchWithAuth, escapeHtml } from '../core/api.ts';
|
||||
import { t } from '../core/i18n.ts';
|
||||
@@ -286,6 +287,7 @@ export async function loadPictureSources() {
|
||||
colorStripSourcesCache.fetch(),
|
||||
csptCache.fetch(),
|
||||
gradientsCache.fetch(),
|
||||
weatherSourcesCache.fetch(),
|
||||
audioProcessingTemplatesCache.fetch(),
|
||||
audioFilterDefsCache.data.length === 0 ? audioFilterDefsCache.fetch() : Promise.resolve(audioFilterDefsCache.data),
|
||||
filtersCache.data.length === 0 ? filtersCache.fetch() : Promise.resolve(filtersCache.data),
|
||||
|
||||
Reference in New Issue
Block a user