fix: weather CSS card shows empty source name after hard refresh
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:
2026-04-05 00:49:28 +03:00
parent ace24715c8
commit 6e8b159126
2 changed files with 3 additions and 1 deletions
@@ -2110,7 +2110,7 @@
} }
.weather-location-field input[type="number"] { .weather-location-field input[type="number"] {
width: 80px; width: 100px;
} }
.composite-layer-drag-handle:active { .composite-layer-drag-handle:active {
@@ -39,6 +39,7 @@ import {
gradientsCache, GradientEntity, gradientsCache, GradientEntity,
audioProcessingTemplatesCache, _cachedAudioProcessingTemplates, audioProcessingTemplatesCache, _cachedAudioProcessingTemplates,
audioFilterDefsCache, audioFilterDefsCache,
weatherSourcesCache,
} from '../core/state.ts'; } from '../core/state.ts';
import { API_BASE, getHeaders, fetchWithAuth, escapeHtml } from '../core/api.ts'; import { API_BASE, getHeaders, fetchWithAuth, escapeHtml } from '../core/api.ts';
import { t } from '../core/i18n.ts'; import { t } from '../core/i18n.ts';
@@ -286,6 +287,7 @@ export async function loadPictureSources() {
colorStripSourcesCache.fetch(), colorStripSourcesCache.fetch(),
csptCache.fetch(), csptCache.fetch(),
gradientsCache.fetch(), gradientsCache.fetch(),
weatherSourcesCache.fetch(),
audioProcessingTemplatesCache.fetch(), audioProcessingTemplatesCache.fetch(),
audioFilterDefsCache.data.length === 0 ? audioFilterDefsCache.fetch() : Promise.resolve(audioFilterDefsCache.data), audioFilterDefsCache.data.length === 0 ? audioFilterDefsCache.fetch() : Promise.resolve(audioFilterDefsCache.data),
filtersCache.data.length === 0 ? filtersCache.fetch() : Promise.resolve(filtersCache.data), filtersCache.data.length === 0 ? filtersCache.fetch() : Promise.resolve(filtersCache.data),