feat: update route and station lists
This commit is contained in:
@@ -149,7 +149,7 @@ export const StationListPage = observer(() => {
|
||||
<div className="flex justify-between items-center mb-10">
|
||||
<h1 className="text-2xl">Остановки</h1>
|
||||
{canWriteStations && (
|
||||
<CreateButton label="Создать остановки" path="/station/create" />
|
||||
<CreateButton label="Создать остановку" path="/station/create" />
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -170,6 +170,7 @@ export const StationListPage = observer(() => {
|
||||
<DataGrid
|
||||
rows={rows}
|
||||
columns={columns}
|
||||
onRowDoubleClick={(params) => canWriteStations && navigate(`/station/${params.row.id}/edit`)}
|
||||
checkboxSelection={canWriteStations}
|
||||
disableRowSelectionExcludeModel
|
||||
loading={isLoading}
|
||||
|
||||
Reference in New Issue
Block a user