Skip to content

Commit 0492c38

Browse files
committed
Show count of selected lines
1 parent 4fd5d44 commit 0492c38

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

ui/src/components/stop-registry/search/by-line/LineSelector.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ export const LineSelector: FC<LineSelectorProps> = ({
3232
<StopGroupSelector
3333
className={className}
3434
groups={groups}
35-
label={t('stopRegistrySearch.lines')}
35+
label={t('stopRegistrySearch.lines', {
36+
count: activeLineIds?.length ?? 0,
37+
})}
3638
onSelect={setActiveLineIds}
3739
selected={activeLineIds}
3840
/>

ui/src/locales/en-US/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@
639639
"byLabel": "By label",
640640
"byLine": "By line label",
641641
"municipalityPlaceholder": "Choose",
642-
"lines": "Lines",
642+
"lines": "Lines ({{ count }})",
643643
"stopAreas": "Stop areas ({{ count }})",
644644
"terminals": "Terminals ({{ count }})",
645645
"showAllLines": "Show all ({{ count }})",

ui/src/locales/fi-FI/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@
638638
"byLabel": "Tunnuksella",
639639
"byLine": "Linjan tunnuksella",
640640
"municipalityPlaceholder": "Valitse",
641-
"lines": "Linjat",
641+
"lines": "Linjat ({{ count }})",
642642
"stopAreas": "Pysäkkialueet ({{ count }})",
643643
"terminals": "Terminaalit ({{ count }})",
644644
"showAllLines": "Näytä kaikki ({{ count }})",

0 commit comments

Comments
 (0)