Skip to content

(feat) Allow enabling and disabling of comments on images

On the meatball menu, add a new option to "Allow Comments" and "Disable Comments"

Call the POST api/v2/permissions/comments/{guid} endpoint with

{ allowed: true | false }

implemented in engine#526 (closed)

Note the api endpoint handles updating the activity associated with the image

Entities coming from engine will have an allow_comments attribute set to true or false

If an image has no comments, change the comment button to the speaker notes off icon https://material.io/tools/icons/?icon=speaker_notes_off&style=baseline and disabled grey. Disable comment inputs

If an image has comments, change the comment to the speaker notes off icon https://material.io/tools/icons/?icon=speaker_notes_off&style=baseline and active blue. Disable comment inputs but still show replies and reply counts

Edited by Brian Hatchet