mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
ES6ify some of the remaining files
This commit is contained in:
parent
378087727f
commit
b7e6eaa961
96 changed files with 684 additions and 720 deletions
|
@ -1,3 +1,4 @@
|
|||
import { propertyNotEqual } from 'discourse/lib/computed';
|
||||
import { popupAjaxError } from 'discourse/lib/ajax-error';
|
||||
|
||||
const AdminUser = Discourse.User.extend({
|
||||
|
@ -144,7 +145,7 @@ const AdminUser = Discourse.User.extend({
|
|||
this.set('originalTrustLevel', this.get('trust_level'));
|
||||
},
|
||||
|
||||
dirty: Discourse.computed.propertyNotEqual('originalTrustLevel', 'trustLevel.id'),
|
||||
dirty: propertyNotEqual('originalTrustLevel', 'trustLevel.id'),
|
||||
|
||||
saveTrustLevel() {
|
||||
return Discourse.ajax("/admin/users/" + this.id + "/trust_level", {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue