mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
14 lines
341 B
JavaScript
14 lines
341 B
JavaScript
Discourse.AdminBadgesRoute = Discourse.Route.extend({
|
|
|
|
model: function() {
|
|
return Discourse.Badge.findAll();
|
|
},
|
|
|
|
setupController: function(controller, model) {
|
|
Discourse.ajax('/admin/badges/types').then(function(json) {
|
|
controller.set('badgeTypes', json.badge_types);
|
|
});
|
|
controller.set('model', model);
|
|
}
|
|
|
|
});
|