FIX: Return all groups instead of truncated list (#42)

This commit is contained in:
Justin DiRose
2019-11-14 12:39:55 -06:00
committed by GitHub
parent 33322598f9
commit 48f0e2b982
3 changed files with 7 additions and 2 deletions
@@ -70,7 +70,7 @@ export default Ember.Controller.extend({
@computed("groups")
groupOptions(groups) {
return groups.arrangedContent.map(g => {
return groups.map(g => {
return { id: g.id.toString(), name: g.name };
});
},
@@ -4,7 +4,7 @@ export default Discourse.Route.extend({
controllerName: "admin-plugins-explorer",
model() {
const groupPromise = this.store.findAll("group");
const groupPromise = ajax("/admin/plugins/explorer/groups.json");
const schemaPromise = ajax("/admin/plugins/explorer/schema.json", {
cache: true
});