discourse/app/assets/javascripts/admin/components/site-settings/group-list.js.es6

12 lines
287 B
JavaScript

import Component from "@ember/component";
import computed from "ember-addons/ember-computed-decorators";
export default Component.extend({
@computed()
groupChoices() {
return this.site.get("groups").map(g => {
return { name: g.name, id: g.id.toString() };
});
}
});