feat: Add checkbox for sightbar entity + fix build errors

This commit is contained in:
2025-06-09 18:48:25 +03:00
parent 2ca1f2cba4
commit e2e750877a
25 changed files with 302 additions and 269 deletions

View File

@ -256,14 +256,17 @@ class StationsStore {
// Update the cached preview data and station lists after successful patch
if (this.stationPreview[id]) {
this.stationPreview[id][language] = {
...this.stationPreview[id][language], // Preserve common fields that might not be in the language-specific patch response
id: response.data.id,
name: response.data.name,
system_name: response.data.system_name,
description: response.data.description,
address: response.data.address,
...commonDataPayload,
} as Station; // Cast to Station to satisfy type
loaded: true,
data: {
...this.stationPreview[id][language].data,
id: response.data.id,
name: response.data.name,
system_name: response.data.system_name,
description: response.data.description,
address: response.data.address,
...commonDataPayload,
} as Station,
};
}
if (this.stationLists[language].data) {
this.stationLists[language].data = this.stationLists[
@ -327,8 +330,8 @@ class StationsStore {
};
}
this.stationPreview[id][language] = {
data: response.data,
loaded: true,
data: response.data as Station,
};
});
};