mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-04-25 16:14:01 -05:00
Add "Report" button
This commit is contained in:
parent
1a3e03bff6
commit
83b6edc995
|
|
@ -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 + "'";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user