AniTrend/anitrend-v2

Review: Add delete widget

wax911 opened this issue · 0 comments

AniTrend Issue Guidelines

Before opening a new issue, please take a moment to review our community guidelines to make the contribution process easy and effective for everyone involved.

You may find an answer in already closed issues:
https://github.com/AniTrend/anitrend-v2/issues?q=is%3Aissue+is%3Aclosed

Feature Information

Add a delete button to common-review adapter to allow us to delete reviews that belong to the currently authenticated user

Solution Information

Reuse existing task workers, specifically task-review
See commit: 1a8bd15

Additional Context

Optionally check if the reivew.user.id is the same as IAuthenticationSettings.userId to know if the widget should be shown or update the Review entity under app-domain to include a isMyReivew boolean flag which is populated in the ModelMapper in app-data/review/converter/ReviewModelConverter