mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 19:55:43 +00:00
renamed
This commit is contained in:
parent
ac3f1ba3d6
commit
6710637904
@ -26,14 +26,14 @@ export default Ember.Component.extend({
|
||||
this.set("available", groups.filterBy("automatic", false));
|
||||
}.bind(this));
|
||||
|
||||
this.refreshOnReset();
|
||||
this._refreshOnReset();
|
||||
},
|
||||
|
||||
_format: function(item){
|
||||
return {"text": item.name, "id": item.id, "locked": item.automatic};
|
||||
},
|
||||
|
||||
refreshOnReset: function() {
|
||||
_refreshOnReset: function() {
|
||||
this.$("input").select2("data", this.get("selected").map(this._format));
|
||||
}.observes("selected")
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user