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

"Add assignment" button makes it add to current category #162

Merged
merged 3 commits into from
Nov 7, 2020

Conversation

andOrlando
Copy link
Collaborator

adds to buttonFuntions.js and home.js, changing the newAssignment function so it adds to the current category filter (and if none is selected just the first category filter), and tracks what the filter is currently. I did this based off a variable and not the filter because it's easier. Just a small bug kind of.

adds to buttonFuntions.js and home.js, changing the newAssignment function so it adds to the current category filter (and if none is selected just the first category filter), and tracks what the filter is currently. I did this based off a variable and not the filter because it's easier.
just so maintainers don't have to
@andOrlando andOrlando changed the title "Add assignment" button makes it add to category "Add assignment" button makes it add to current category Nov 2, 2020
@andOrlando
Copy link
Collaborator Author

also forgot to mention this, but selecting the same category as the one currently selected clears the filter

Using -1 as the sentinel value improves type safety.
Copy link
Member

@psvenk psvenk left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@psvenk psvenk merged commit ca56796 into Aspine:master Nov 7, 2020
andOrlando added a commit that referenced this pull request Dec 16, 2020
adds to buttonFuntions.js and home.js, changing the newAssignment function so it adds to the current category filter (and if none is selected just the first category filter), and tracks what the filter is currently. I did this based off a variable and not the filter because it's easier.
@andOrlando andOrlando deleted the add-assignment-to-current-category branch December 20, 2020 03:29
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.

2 participants