-
Notifications
You must be signed in to change notification settings - Fork 15
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
B submit - submit & vote buttons logic #78
base: master
Are you sure you want to change the base?
Conversation
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.
Good progress, but not mature enough for merging yet.
- See comments inline in the code
- See issues b-submit branch: After submitting a proposal, the suggestion textbox never becomes enabled #83 and b-submit branch: Heart icon not styled correctly #84
// POST /submit | ||
router.post('/submit', function (req, res, next) { | ||
var playerId = req.body.playerId | ||
var suggestionDisabled = req.body.suggestionDisabled |
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.
Where is this parameter used?
playerId: this.sharedState.playerId, | ||
suggestionDisabled: this.suggestionDisabled | ||
}, function (err, state) { | ||
if (err) { console.log(err) } |
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.
This hides the error, should either be assert(!err) or window.alert(err)
(We should unify all error handling/display code into one place)
Also, tests are failing due to the changed functionality. |
No description provided.