mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
Tests + Refactoring for Suspension Modal
This commit is contained in:
@ -58,7 +58,6 @@ export default Ember.Controller.extend(CanCheckEmails, {
|
||||
saveTrustLevel() { return this.get("model").saveTrustLevel(); },
|
||||
restoreTrustLevel() { return this.get("model").restoreTrustLevel(); },
|
||||
lockTrustLevel(locked) { return this.get("model").lockTrustLevel(locked); },
|
||||
unsuspend() { return this.get("model").unsuspend(); },
|
||||
unblock() { return this.get("model").unblock(); },
|
||||
block() { return this.get("model").block(); },
|
||||
deleteAllPosts() { return this.get("model").deleteAllPosts(); },
|
||||
@ -68,6 +67,9 @@ export default Ember.Controller.extend(CanCheckEmails, {
|
||||
showSuspendModal() {
|
||||
this.get('adminTools').showSuspendModal(this.get('model'));
|
||||
},
|
||||
unsuspend() {
|
||||
this.get("model").unsuspend().catch(popupAjaxError);
|
||||
},
|
||||
|
||||
|
||||
toggleUsernameEdit() {
|
||||
|
Reference in New Issue
Block a user