FIX: add context for deactivated user logs

This commit is contained in:
Arpit Jalan
2018-05-08 08:14:49 +05:30
parent 8cf0f51eb2
commit 3a6e137e70
2 changed files with 3 additions and 2 deletions

View File

@ -300,7 +300,8 @@ const AdminUser = Discourse.User.extend({
deactivate() {
return ajax('/admin/users/' + this.id + '/deactivate', {
type: 'PUT'
type: 'PUT',
data: { context: document.location.pathname }
}).then(function() {
window.location.reload();
}).catch(function(e) {