mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
report & mark message
This commit is contained in:
@@ -113,12 +113,22 @@ export default {
|
||||
async reportAbuse () {
|
||||
this.text('Thank you for reporting this violation. The moderators have been notified.');
|
||||
|
||||
await this.$store.dispatch('chat:flag', {
|
||||
let result = await this.$store.dispatch('chat:flag', {
|
||||
groupId: this.groupId,
|
||||
chatId: this.abuseObject.id,
|
||||
comment: this.reportComment,
|
||||
});
|
||||
|
||||
|
||||
console.info('error', result);
|
||||
this.$root.$emit('habitica:report-result', result);
|
||||
|
||||
if (!result.ok && result.error) {
|
||||
alert('errrorororor!');
|
||||
console.info('error', result);
|
||||
this.error(result.error);
|
||||
}
|
||||
|
||||
this.close();
|
||||
},
|
||||
async clearFlagCount () {
|
||||
|
||||
Reference in New Issue
Block a user