-
Notifications
You must be signed in to change notification settings - Fork 4
326 service configuration select options #1937
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: main
Are you sure you want to change the base?
Conversation
…the whole tree when selecting product bocks by name
🦋 Changeset detectedLatest commit: 3484bc6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
} | ||
|
||
const { checked, data } = changedOption; | ||
const shouldAdd = checked === 'on'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const shouldAdd = checked === 'on'; | |
const shouldAddIds = checked === 'on'; |
const shouldAdd = checked === 'on'; | ||
|
||
expandAll(); | ||
return shouldAdd ? selectIds(data.ids) : deselectIds(data.ids); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return shouldAdd ? selectIds(data.ids) : deselectIds(data.ids); | |
return shouldAddIds ? selectIds(data.ids) : deselectIds(data.ids); |
const items2Map = productBlockInstances.reduce((acc, curr) => { | ||
const name = getFieldFromProductBlockInstanceValues( | ||
curr.productBlockInstanceValues, | ||
'name', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to use an enum here so 'name' doesn't have to be hardcode?
text={t( | ||
'selectByNameButtonText', | ||
)} | ||
onClick={() => togglePopover()} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onClick={togglePopover}
#326
Adds new button to the product blocks tree to select all product blocks of a certain type