mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Add a spec for the new plugins controller
This commit is contained in:
parent
0ce6524153
commit
8d46de4819
4 changed files with 28 additions and 12 deletions
|
@ -1,6 +1,6 @@
|
|||
export default Ember.Route.extend({
|
||||
model() {
|
||||
return Discourse.ajax("/admin/plugins.json");
|
||||
return Discourse.ajax("/admin/plugins.json").then(res => res.plugins);
|
||||
},
|
||||
|
||||
actions: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue