diff --git a/src/pages/Route/LinekedStations.tsx b/src/pages/Route/LinekedStations.tsx index 4d9fd71..c4fc730 100644 --- a/src/pages/Route/LinekedStations.tsx +++ b/src/pages/Route/LinekedStations.tsx @@ -99,7 +99,7 @@ export const LinkedItems = < }} > - Привязанные станции + Привязанные остановки @@ -499,7 +499,7 @@ const LinkedItemsContentsInner = < {linkedItems.length === 0 && !isLoading && ( - Станции не найдены + Остановки не найдены )} diff --git a/src/pages/Route/route-preview/Widgets.tsx b/src/pages/Route/route-preview/Widgets.tsx index 24945dd..1b8d5d0 100644 --- a/src/pages/Route/route-preview/Widgets.tsx +++ b/src/pages/Route/route-preview/Widgets.tsx @@ -26,7 +26,7 @@ export function Widgets() { justifyContent="center" > - Станция + Остановка diff --git a/src/pages/Station/StationCreatePage/index.tsx b/src/pages/Station/StationCreatePage/index.tsx index 7026575..2f44735 100644 --- a/src/pages/Station/StationCreatePage/index.tsx +++ b/src/pages/Station/StationCreatePage/index.tsx @@ -73,7 +73,7 @@ export const StationCreatePage = observer(() => { navigate("/station"); } catch (error) { console.error("Error creating station:", error); - toast.error("Ошибка при создании станции"); + toast.error("Ошибка при создании остановки"); } finally { setIsLoading(false); } diff --git a/src/pages/Station/StationEditPage/index.tsx b/src/pages/Station/StationEditPage/index.tsx index de97eb6..bf4e82b 100644 --- a/src/pages/Station/StationEditPage/index.tsx +++ b/src/pages/Station/StationEditPage/index.tsx @@ -81,7 +81,7 @@ export const StationEditPage = observer(() => { toast.success("Остановка успешно обновлена"); } catch (error) { console.error("Error updating station:", error); - toast.error("Ошибка при обновлении станции"); + toast.error("Ошибка при обновлении остановки"); } finally { setIsLoading(false); } @@ -192,7 +192,7 @@ export const StationEditPage = observer(() => { minHeight: "60vh", }} > - + ); } diff --git a/src/pages/Station/StationListPage/index.tsx b/src/pages/Station/StationListPage/index.tsx index bf13ea9..f819e34 100644 --- a/src/pages/Station/StationListPage/index.tsx +++ b/src/pages/Station/StationListPage/index.tsx @@ -147,7 +147,7 @@ export const StationListPage = observer(() => {
-

Станции

+

Остановки

{canWriteStations && ( )} @@ -222,7 +222,7 @@ export const StationListPage = observer(() => { slots={{ noRowsOverlay: () => ( - {isLoading ? : "Нет станций"} + {isLoading ? : "Нет остановок"} ), }} diff --git a/src/pages/Station/StationPreviewPage/index.tsx b/src/pages/Station/StationPreviewPage/index.tsx index 14f5827..0639087 100644 --- a/src/pages/Station/StationPreviewPage/index.tsx +++ b/src/pages/Station/StationPreviewPage/index.tsx @@ -39,7 +39,7 @@ export const StationPreviewPage = observer(() => { minHeight: "60vh", }} > - + ); } diff --git a/src/shared/store/RouteStore/index.ts b/src/shared/store/RouteStore/index.ts index ae1063c..34b344f 100644 --- a/src/shared/store/RouteStore/index.ts +++ b/src/shared/store/RouteStore/index.ts @@ -97,7 +97,6 @@ class RouteStore { saveRouteStations = async (routeId: number, stationId: number) => { const { language } = languageStore; - // Получаем актуальные данные станции с сервера const stationResponse = await languageInstance(language).get( `/station/${stationId}` ); @@ -108,7 +107,6 @@ class RouteStore { (station) => station.id === stationId ); - // Формируем данные для отправки: все поля станции + отредактированные offset const dataToSend: any = { station_id: stationId, offset_x: editedStationData?.offset_x ?? fullStationData.offset_x ?? 0, diff --git a/src/shared/store/StationsStore/index.ts b/src/shared/store/StationsStore/index.ts index c38105e..a9db731 100644 --- a/src/shared/store/StationsStore/index.ts +++ b/src/shared/store/StationsStore/index.ts @@ -555,7 +555,6 @@ class StationsStore { ) => { const { language } = languageStore; - // Получаем данные станции для текущего языка const response = await languageInstance(language).get(`/station/${id}`); const stationData = response.data as Station; diff --git a/src/widgets/modals/EditStationTransfersModal/index.tsx b/src/widgets/modals/EditStationTransfersModal/index.tsx index 2faa1d3..aa639e7 100644 --- a/src/widgets/modals/EditStationTransfersModal/index.tsx +++ b/src/widgets/modals/EditStationTransfersModal/index.tsx @@ -117,7 +117,7 @@ export const EditStationTransfersModal = observer( - Станции / Редактировать пересадки + Остановки / Редактировать пересадки Редактирование пересадок