stats4sd / wordcloud-app

A polymer web app to gather comments and analyse them in R.
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Add ability to edit own comments #13

Closed dave-mills closed 7 years ago

dave-mills commented 7 years ago

Would be nice for users to be able to review and edit the comments they've submitted.

How:

chrismclarke commented 7 years ago

Implemented, commits 42aecb200dbcc809d5b22c55cbe5109eab15a843 bdebda76ffbe074ae23314cfc30d50e620545741 App now defines the comment pushID itself instead of autogen (using same algorithm as polymer anyway). Add comment function uses this pushID when saving the doc and binds to it so any changes update that key in the database. Currently limited to just one comment per user but could be saved locally to allow multiple responses for the question and/or across multiple questions.