Skip to content

Conversation

@leandroradusky
Copy link
Contributor

@leandroradusky leandroradusky commented Jan 19, 2023

Closes #1778.

When the source of samples in box creation is changed, a warning message is shown:

image

To accomplish this, react selector components reset to empty state by clicking a hidden <a>. It's the best way I found to apply changes within React components from plain javascript. Not sure it's the best way.

The javascript is commented because it has some complexity (should I put it in a separate file? don't know if it's a rule to do it or not). At least, some jquery is gone :)

Copy link
Contributor

@ysbaddaden ysbaddaden left a comment

Choose a reason for hiding this comment

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

Nice! I think we can improve the JS glue a bit :)

Copy link
Contributor

@ysbaddaden ysbaddaden left a comment

Choose a reason for hiding this comment

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

LGTM

@leandroradusky leandroradusky merged commit 1ee99ff into main Jan 20, 2023
@leandroradusky leandroradusky deleted the feature/1778-changes-sources-empties-selector-components branch January 20, 2023 17:12
@leandroradusky leandroradusky restored the feature/1778-changes-sources-empties-selector-components branch January 20, 2023 17:22
@leandroradusky leandroradusky deleted the feature/1778-changes-sources-empties-selector-components branch January 20, 2023 17:23
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.

Changing the sources empties the contents

3 participants