Bugfix Typo in Diff Load Lines

A typo was fixed by adding an additional check to see if we have 1 or more than 1 lines to load

Committed-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Co-authored-by: tarik-guersoy <tarik.guersoy@cloudogu.com>
This commit is contained in:
Tarik Gürsoy
2023-08-16 13:53:46 +02:00
parent 95142b122d
commit 9b5e8b1d67
4 changed files with 12 additions and 9 deletions

View File

@@ -0,0 +1,2 @@
- type: bugfix
description: A typo on a button for loading more lines in the diff tab has been fixed

View File

@@ -47,7 +47,8 @@ const HunkHeader: FC<Props> = ({ expandableHunk, diffExpanded, diffExpansionFail
<HunkExpandLink
icon={"fa-angle-double-up"}
onClick={expandHead(expandableHunk, expandableHunk.maxExpandHeadRange)}
text={t("diff.expandComplete", { count: expandableHunk.maxExpandHeadRange })}
text={t("diff.expandComplete", { count: expandableHunk.maxExpandHeadRange })
}
/>
</HunkExpandDivider>
);

View File

@@ -528,10 +528,10 @@
"sideBySide": "Zur zweispaltigen Ansicht wechseln",
"combined": "Zur kombinierten Ansicht wechseln",
"noDiffFound": "Kein Diff zwischen den ausgewählten Branches gefunden.",
"expandByLines": "{{count}} weitere Zeile laden",
"expandByLines_plural": "{{count}} weitere Zeilen laden",
"expandComplete": "{{count}} verbleibende Zeile laden",
"expandComplete_plural": "Alle {{count}} verbleibenden Zeilen laden",
"expandByLines_one": "{{count}} weitere Zeile laden",
"expandByLines_other": "{{count}} weitere Zeilen laden",
"expandComplete_one": "{{count}} verbleibende Zeile laden",
"expandComplete_other": "Alle {{count}} verbleibenden Zeilen laden",
"expandLastBottomByLines": "Bis zu {{count}} weitere Zeilen laden",
"expandLastBottomComplete": "Alle verbleibenden Zeilen laden",
"expanding": "Zeilen werden geladen ...",

View File

@@ -535,10 +535,10 @@
"sideBySide": "Switch to side-by-side view",
"combined": "Switch to combined view",
"noDiffFound": "No Diff between the selected branches found.",
"expandByLines": "load {{count}} more line",
"expandByLines_plural": "load {{count}} more lines",
"expandComplete": "load {{count}} remaining line",
"expandComplete_plural": "load all {{count}} remaining lines",
"expandByLines_one": "load {{count}} more line",
"expandByLines_other": "load {{count}} more lines",
"expandComplete_one": "load {{count}} remaining line",
"expandComplete_other": "load all {{count}} remaining lines",
"expandLastBottomByLines": "load up to {{count}} more lines",
"expandLastBottomComplete": "load all remaining lines",
"expanding": "loading lines ...",