-
Notifications
You must be signed in to change notification settings - Fork 11
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
potential save course fix #964
base: main
Are you sure you want to change the base?
Conversation
- default collection functionality changed - courses in default collection can only be removed by specifically removing that course from the default collection
[diff-counting] Significant lines: 21. |
Visit the preview URL for this PR (updated for commit f00b29a): https://cornelldti-courseplan-dev--pr964-savedcourses-fixes-hpuztrf4.web.app (expires Tue, 17 Dec 2024 22:25:47 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 6d4e0437c4559ed895272bbd63991394f1e0e933 |
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.
I know this is a draft PR so there are still some more fixes but great progress so far!! thanks so much for being on top of it!
@@ -162,6 +162,11 @@ export default defineComponent({ | |||
collection => !this.checkedCollections.includes(collection) | |||
); | |||
|
|||
// If no specific collections were selected, and no prevoius selections were removed, add to 'All' | |||
if (addedToCollections.length === 0 && deletedFromCollections.length === 0) { | |||
console.log('added to All'); |
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.
Just to clarify the functionality:
anytime you save any course, it should end up in the "all" collection, whether you add it to another specific collection or not?
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.
Also, on a completely separate note, should the other drop downs for collections close if you open a different one? That is, is it possible for all of the collection drop downs to be open at the same time?
Summary
This pull request is the first step potentially fixing save Courses default collection functionality
Test Plan
Notes
May not change the functionality based on future user reviews
Blockers
Breaking Changes