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

B submit - submit & vote buttons logic #78

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

B submit - submit & vote buttons logic #78

wants to merge 4 commits into from

Conversation

yaronsh8
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@ripper234 ripper234 left a 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.

  1. See comments inline in the code
  2. 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
Copy link
Collaborator

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) }
Copy link
Collaborator

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)

@ripper234
Copy link
Collaborator

Also, tests are failing due to the changed functionality.

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.

None yet

2 participants