Skip to content

Commit

Permalink
pass hidden fields for VersionHistoryPane component
Browse files Browse the repository at this point in the history
  • Loading branch information
alisher-epam committed Dec 21, 2023
1 parent db4a409 commit 2066643
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/common/constants/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,7 @@ export const UNOPEN_ORDER_ABANDONED_HOLDINGS_TYPES = {

export const FIELD_ARRAY_ITEM_IDENTIFIER_KEY = '__key__';
export const OKAPI_TENANT_HEADER = 'X-Okapi-Tenant';

export const HIDDEN_ORDER_LABELS_MAP = {
nextPolNumber: 'nextPolNumber',
};
2 changes: 2 additions & 0 deletions src/components/POLine/POLineVersionView/POLineVersionView.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {

import { VersionView } from '../../../common';
import {
HIDDEN_ORDER_LABELS_MAP,
ORDERS_ROUTE,
ORDER_LINES_ROUTE,
} from '../../../common/constants';
Expand Down Expand Up @@ -111,6 +112,7 @@ const POLineVersionView = ({
snapshotPath={snapshotPath}
labelsMap={getPoLineFieldsLabelMap(selectedVersion)}
versions={versions}
hiddenLabelsMap={HIDDEN_ORDER_LABELS_MAP}
/>
</VersionViewContextProvider>
);
Expand Down
6 changes: 5 additions & 1 deletion src/components/PurchaseOrder/POVersionView/POVersionView.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ import {
} from '@folio/stripes-acq-components';

import { VersionView } from '../../../common';
import { ORDERS_ROUTE } from '../../../common/constants';
import {
HIDDEN_ORDER_LABELS_MAP,
ORDERS_ROUTE,
} from '../../../common/constants';
import { useOrder } from '../../../common/hooks';
import {
usePOVersions,
Expand Down Expand Up @@ -87,6 +90,7 @@ const POVersionView = ({
snapshotPath={snapshotPath}
labelsMap={getPoFieldsLabelMap()}
versions={versions}
hiddenLabelsMap={HIDDEN_ORDER_LABELS_MAP}
/>
</VersionViewContextProvider>
);
Expand Down

0 comments on commit 2066643

Please sign in to comment.