Commit graph

3 commits

Author SHA1 Message Date
Andy Zhao
adc347580f
[deploy] Add error handling for comment mod page reactions (#9806)
* Add error handling for comment mod page reactions

* Use alert instead of snackbar
2020-08-15 12:19:57 -04:00
Andy Zhao
07a711a1cc
Add missing .dataset (#9805) 2020-08-15 11:51:44 -04:00
Arit Amana
c1fe6a6488
[deploy] [Moderation] Allow admins to delete comments (#9628)
* Styling of Delete Comment

* Start hooking DELETE action up

* Add new route

* Add new action

* Update comment_policy.rb

* Update specs for comment_policy.rb

* Some more specs

* Update api call

* Building delete functionality

* Still building...

* Complete implementation

* Changes from PR review

* Fix failing spec; rework admin_delete method

* Protect redirect

* Improve admin_delete method

* Protect redirect

* Refactor JS file and admin_delete method

* Fix flash messages issues

* Fix confirm dialog

* Final QA changes
2020-08-13 10:15:48 -04:00