mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Add a store
so we can start using ES6 modules for models, finally.
This commit is contained in:
parent
8d46de4819
commit
d8c616a68a
7 changed files with 99 additions and 32 deletions
|
@ -1,6 +1,6 @@
|
|||
export default Ember.Route.extend({
|
||||
model() {
|
||||
return Discourse.ajax("/admin/plugins.json").then(res => res.plugins);
|
||||
return this.store.findAll('plugin');
|
||||
},
|
||||
|
||||
actions: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue