File tree 3 files changed +5
-1
lines changed
components/map/stop-areas
3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,9 @@ export const EditStopAreaModal = ({
28
28
const { t } = useTranslation ( ) ;
29
29
const formRef = useRef < ExplicitAny > ( null ) ;
30
30
const onSave = ( ) => submitFormByRef ( formRef ) ;
31
- const heading = t ( 'map.createNewStopArea' ) ;
31
+ const heading = defaultValues . privateCode
32
+ ? t ( 'map.editStopArea' , { stopArea : defaultValues . privateCode } )
33
+ : t ( 'map.createNewStopArea' ) ;
32
34
33
35
return (
34
36
< CustomOverlay position = "top-right" >
Original file line number Diff line number Diff line change 521
521
"footerActionsTooltip" : " Create new..." ,
522
522
"createNewTerminal" : " Create new terminal" ,
523
523
"createNewStopArea" : " Create new stop area" ,
524
+ "editStopArea" : " Stop area {{stopArea}}" ,
524
525
"error" : " Map error: {{message}}"
525
526
},
526
527
"saveChangesModal" : {
Original file line number Diff line number Diff line change 520
520
"footerActionsTooltip" : " Luo uusi..." ,
521
521
"createNewTerminal" : " Luo uusi terminaali" ,
522
522
"createNewStopArea" : " Luo uusi pysäkkialue" ,
523
+ "editStopArea" : " Pysäkkialue {{stopArea}}" ,
523
524
"error" : " Karttavirhe: {{message}}"
524
525
},
525
526
"saveChangesModal" : {
You can’t perform that action at this time.
0 commit comments