Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OBPIH-4770 Create new product list #3497

Merged
merged 2 commits into from
Sep 27, 2022
Merged

Conversation

kchelstowski
Copy link
Collaborator

I also found in the mean time some minor issues on PO list and changed some state names on invoiceList which were copied from PO list and not changed by mistake.

const [filterParams, setFilterParams] = useState({});

useEffect(() => {
props.fetchTranslations(props.locale, 'purchaseOrder');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong translation fetched
change to
props.fetchTranslations(props.locale, 'productsList');

label: 'react.productsList.includeSubcategories.label',
defaultMessage: 'Include all products in all subcategories',
attributes: {
filterElement: true,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does the attribute filterElement: true do for CheckboxField ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is added to filter form elements not to have to play around with position styles included in form-utils, so it is just to position filter elements, nothing functional.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's right I remember now. The naming implies that it has something to do with filtering, kind of misleading

@awalkowiak awalkowiak merged commit 9ba596a into feature/ui-redesign Sep 27, 2022
@awalkowiak awalkowiak deleted the OBPIH-4770 branch September 27, 2022 20:22
@kchelstowski kchelstowski restored the OBPIH-4770 branch September 28, 2022 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants