From 04b6ba35eed67fb1c7236ec597d2d3ad1266ccd2 Mon Sep 17 00:00:00 2001 From: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com> Date: Fri, 29 Sep 2023 12:44:03 -0400 Subject: [PATCH] HPCC-29723 ECL Watch v9 show count of selected rows on list pages Signed-off-by: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com> --- esp/src/src-react/components/DFUWorkunits.tsx | 1 + esp/src/src-react/components/EventScheduler.tsx | 1 + esp/src/src-react/components/Files.tsx | 1 + esp/src/src-react/components/GroupMembers.tsx | 1 + esp/src/src-react/components/Groups.tsx | 1 + esp/src/src-react/components/Logs.tsx | 1 + esp/src/src-react/components/Queries.tsx | 1 + esp/src/src-react/components/Users.tsx | 1 + esp/src/src-react/components/Workunits.tsx | 1 + esp/src/src-react/components/controls/Grid.tsx | 4 +++- esp/src/src/nls/hpcc.ts | 1 + 11 files changed, 13 insertions(+), 1 deletion(-) diff --git a/esp/src/src-react/components/DFUWorkunits.tsx b/esp/src/src-react/components/DFUWorkunits.tsx index 94401b8541b..2c5e941c813 100644 --- a/esp/src/src-react/components/DFUWorkunits.tsx +++ b/esp/src/src-react/components/DFUWorkunits.tsx @@ -277,6 +277,7 @@ export const DFUWorkunits: React.FunctionComponent = ({ footer={ = ({ footer={ = ({ footer={ = ({ footer={ = ({ footer={ = ({ footer={ = ({ footer={ = ({ footer={ = ({ footer={ void, setPageSize: (pageNum: number) => void } @@ -383,6 +384,7 @@ export const FluentPagedFooter: React.FunctionComponent persistID, pageNum = 1, total, + selectionCount = 0, setPageNum, setPageSize }) => { @@ -463,7 +465,7 @@ export const FluentPagedFooter: React.FunctionComponent const start = props.selectedPageIndex === 0 ? 1 : (props.selectedPageIndex * props.itemsPerPage) + 1; const end = (props.itemsPerPage * (props.selectedPageIndex + 1)) > props.totalItemCount ? props.totalItemCount : props.itemsPerPage * (props.selectedPageIndex + 1); return
- {start} {props.strings.divider} {end} {nlsHPCC.Of.toLowerCase()} {props.totalItemCount} {nlsHPCC.Rows} + {start} {props.strings.divider} {end} {nlsHPCC.Of.toLowerCase()} {props.totalItemCount} {nlsHPCC.Rows} {selectionCount ? `(${selectionCount} ${nlsHPCC.Selected})` : ""}
; }} /> diff --git a/esp/src/src/nls/hpcc.ts b/esp/src/src/nls/hpcc.ts index 2478f135613..158814f741c 100644 --- a/esp/src/src/nls/hpcc.ts +++ b/esp/src/src/nls/hpcc.ts @@ -818,6 +818,7 @@ export = { SecurityMessageHTML: "Only view HTML from trusted users. This workunit was created by \"{__placeholder__}\". \nRender HTML?", SeeConfigurationManager: "See Configuration Manager", SelectA: "Select a", + Selected: "Selected", SelectValue: "Select a value", SelectEllipsis: "Select...", SelectPackageFile: "Select Package File",