mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
Added notifications when flagging failed
This commit is contained in:
@@ -99,6 +99,7 @@ export default class FlagButton extends Component {
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
this.props.notify('error', t('error.COMMENT_FLAG_FAILED'));
|
||||
console.error(err);
|
||||
});
|
||||
} else {
|
||||
@@ -109,6 +110,7 @@ export default class FlagButton extends Component {
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
this.props.notify('error', t('error.USER_FLAG_FAILED'));
|
||||
console.error(err);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user