mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 13:05:31 +08:00
api was not showing api key cause model in ember is just partial advice that is sometimes followed up
This commit is contained in:
parent
b25a5a20bb
commit
855ba562ac
|
@ -11,7 +11,10 @@ Discourse.AdminApiRoute = Discourse.Route.extend({
|
|||
this.render({into: 'admin/templates/admin'});
|
||||
},
|
||||
|
||||
model: function(params) {
|
||||
return Discourse.AdminApi.find();
|
||||
setupController: function(controller, model) {
|
||||
// in case you are wondering, model never gets called for link_to
|
||||
Discourse.AdminApi.find().then(function(result){
|
||||
controller.set('content', result);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user