Skip to content

Commit

Permalink
HPCC-31030 ECL Watch v9 show FileAccessCost on DFU WU details
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Clements <[email protected]>
  • Loading branch information
jeclrsg committed Jan 9, 2024
1 parent 6f1f5a6 commit c262c7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions esp/src/src-react/components/DFUWorkunitDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { scopedLogger } from "@hpcc-js/util";
import { SizeMe } from "react-sizeme";
import nlsHPCC from "src/nlsHPCC";
import * as FileSpray from "src/FileSpray";
import { formatCost } from "src/Session";
import { useConfirm } from "../hooks/confirm";
import { useDfuWorkunit } from "../hooks/workunit";
import { pivotItemStyle } from "../layouts/pivot";
Expand Down Expand Up @@ -213,6 +214,7 @@ export const DFUWorkunitDetails: React.FunctionComponent<DFUWorkunitDetailsProps
"protected": { label: nlsHPCC.Protected, type: "checkbox", value: _protected },
"command": { label: nlsHPCC.Command, type: "string", value: FileSpray.CommandMessages[workunit?.Command], readonly: true },
"state": { label: nlsHPCC.State, type: "string", value: FileSpray.States[workunit?.State], readonly: true },
"accessCost": { label: nlsHPCC.FileAccessCost, type: "string", value: `${formatCost(workunit?.FileAccessCost ?? 0)}`, readonly: true },
"timeStarted": { label: nlsHPCC.TimeStarted, type: "string", value: workunit?.TimeStarted, readonly: true },
"secondsLeft": { label: nlsHPCC.SecondsRemaining, type: "number", value: workunit?.SecsLeft, readonly: true },
"timeStopped": { label: nlsHPCC.TimeStopped, type: "string", value: workunit?.TimeStopped, readonly: true },
Expand Down
8 changes: 3 additions & 5 deletions esp/src/src-react/components/Scopes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { formatCost } from "src/Session";
import * as Utility from "src/Utility";
import nlsHPCC from "src/nlsHPCC";
import { useConfirm } from "../hooks/confirm";
import { useBuildInfo } from "../hooks/platform";
import { useUserTheme } from "../hooks/theme";
import { useMyAccount } from "../hooks/user";
import { HolyGrail } from "../layouts/HolyGrail";
Expand Down Expand Up @@ -101,7 +100,6 @@ export const Scopes: React.FunctionComponent<ScopesProps> = ({
const { currentUser } = useMyAccount();
const [viewByScope, setViewByScope] = React.useState(true);
const [uiState, setUIState] = React.useState({ ...defaultUIState });
const [, { currencyCode }] = useBuildInfo();
const {
selection, setSelection,
setTotal,
Expand Down Expand Up @@ -197,14 +195,14 @@ export const Scopes: React.FunctionComponent<ScopesProps> = ({
Modified: { label: nlsHPCC.ModifiedUTCGMT, width: 162 },
AtRestCost: {
label: nlsHPCC.FileCostAtRest, width: 100,
formatter: (cost, row) => `${formatCost(cost ?? 0)} (${currencyCode || "$"})`
formatter: (cost, row) => `${formatCost(cost ?? 0)}`
},
AccessCost: {
label: nlsHPCC.FileAccessCost, width: 100,
formatter: (cost, row) => `${formatCost(cost ?? 0)} (${currencyCode || "$"})`
formatter: (cost, row) => `${formatCost(cost ?? 0)}`
}
};
}, [currencyCode, scopePath]);
}, [scopePath]);

const [DeleteConfirm, setShowDeleteConfirm] = useConfirm({
title: nlsHPCC.Delete,
Expand Down

0 comments on commit c262c7f

Please sign in to comment.