Skip to content

Commit cc2e519

Browse files
committed
Change stop area edit modal title
1 parent 0c07e61 commit cc2e519

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

Diff for: ui/src/components/map/stop-areas/EditStopAreaModal.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ export const EditStopAreaModal = ({
2828
const { t } = useTranslation();
2929
const formRef = useRef<ExplicitAny>(null);
3030
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');
3234

3335
return (
3436
<CustomOverlay position="top-right">

Diff for: ui/src/locales/en-US/common.json

+1
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@
521521
"footerActionsTooltip": "Create new...",
522522
"createNewTerminal": "Create new terminal",
523523
"createNewStopArea": "Create new stop area",
524+
"editStopArea": "Stop area {{stopArea}}",
524525
"error": "Map error: {{message}}"
525526
},
526527
"saveChangesModal": {

Diff for: ui/src/locales/fi-FI/common.json

+1
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,7 @@
520520
"footerActionsTooltip": "Luo uusi...",
521521
"createNewTerminal": "Luo uusi terminaali",
522522
"createNewStopArea": "Luo uusi pysäkkialue",
523+
"editStopArea": "Pysäkkialue {{stopArea}}",
523524
"error": "Karttavirhe: {{message}}"
524525
},
525526
"saveChangesModal": {

0 commit comments

Comments
 (0)