Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 48690561

Přidáno uživatelem Václav Honzík před asi 2 roky(ů)

smol refactor

re #9741

Zobrazit rozdíly:

frontend/src/features/TrackingTool/TrackingToolState.ts
4 4

  
5 5
export default interface TrackingToolState {
6 6
    isLoading: boolean // whether the data is being loaded
7
    pathDto?: PathDto // the data
7
    pathDto?: PathDto // the data - response object from the API
8 8
    pathVariants?: PathVariant[] // undefined signals that no path variants were yet fetched from the API
9
    lastError?: string // consumable for errors during thunks
10
    mapCenter: LatLngTuple // pair of latitude and longitude
11
    primaryPathIdx: number // index of the primary path. This index is always in relation to the pathVariants array and not the current page
12
    // trigger to close the dialog when API call is finished
9
    lastError?: string
10
    mapCenter: LatLngTuple
11
    displayedPathIdx: number // index of the selected path in array
12
    displayedPath?: PathVariant // selected path - this path is always taken out from the pathVariants array
13 13
    dialogApiCallSuccess: boolean
14
    pathsPerPage: number // max number of paths to show on the map at once
15
    currentPage: number // current page of paths - starts from 0
16 14
}

Také k dispozici: Unified diff