jbob / the_queue

Web-based queue thingy written with Perl/Mojolicious/MongoDB/Mandel.
1 stars 1 forks source link

Update the list of interested people when toggling the "like" button #5

Closed defaude closed 5 years ago

defaude commented 5 years ago

Somewhat relates to #3 Right now, the list of people interested in an item does not update when the AJAXified buttons are used.

jbob commented 5 years ago

Currently the server replies to Ajax requests for the like/thumbs button with:

{
  "message": "success"
}

It's easy to include the updated list, e.g. like this:

{
  "message": "success",
  "interested": [
    "foo",
    "bar",
    "baz"
  ]
}

Would you be willing to implement the client side changes?

defaude commented 5 years ago

Sure thäng!