-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fix #2351 & cleanup AddToCollectionList component
#2353
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
Fix #2351 & cleanup AddToCollectionList component
#2353
Conversation
…llectionList # Conflicts: # client/modules/IDE/components/AddToCollectionList.jsx
PiyushChandra17
left a comment
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.
Nicely Done
raclim
left a comment
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.
Thanks for working on this!
I fixed some merge conflicts and also updated the props passed in IDEOverlays to reflect the new changes. Besides that, I don't think there should be any other major additional changes, but let me know if you spot anything!
@raclim there is definitely in a problem in the |
|
Thanks for catching that! I'll create a new issue now to quickly update it. |
Fixes #2363
Fixes #2351
Progress on #2179
Changes:
AddToCollectionListto a function component.projectId-- the id of the project to add to the chosen collection.useSelectoranduseDispatch.Promisefrom thegetCollectionsaction so that the component knows when loading is complete.getProjectfetch as the project details are not used.ifcondition on the title as a user is always adding to their own collections, even when it's another user's project.AddToCollectionList.AnothersTitlecan be removed from translation files, but I didn't do this.PropTypes.mapStateToPropsandmapDispatchToPropsoften include unused props #2179). Only/actions/collectionsis used. The other four are not needed.I have verified that this pull request:
npm run lint)npm run test)developbranch.Fixes #123