forked from MapComplete/MapComplete
Feature(reviews): fix #2457, add report functionality with reason
This commit is contained in:
parent
dc62db7dcf
commit
7ce320075d
3 changed files with 89 additions and 10 deletions
|
|
@ -452,9 +452,14 @@ export default class FeatureReviews {
|
|||
|
||||
public async deleteReview(review: Review & {signature: string}){
|
||||
await MangroveReviews.deleteReview(await this._identity.getKeypair(), review)
|
||||
this.removeReviewLocally(review)
|
||||
}
|
||||
|
||||
public removeReviewLocally(review: Review){
|
||||
this._reviews.set(
|
||||
this._reviews.data.filter(r => r !== review)
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue