Add "Report" button

This commit is contained in:
Guangcong Luo 2018-10-16 04:55:02 -05:00
parent 1a3e03bff6
commit 83b6edc995

View File

@ -2510,7 +2510,10 @@
this.update();
},
update: function () {
this.$el.html('<p><button name="toggleIgnoreUser">' + (app.ignore[this.userid] ? 'Unignore' : 'Ignore') + '</button></p>');
this.$el.html('<p><button name="toggleIgnoreUser">' + (app.ignore[this.userid] ? 'Unignore' : 'Ignore') + '</button></p><p><button name="report">Report</button></p>');
},
report: function () {
app.joinRoom('view-help-request-report');
},
toggleIgnoreUser: function () {
var buf = "User '" + this.name + "'";