discourse/app/assets/javascripts/admin/routes/admin-emojis.js.es6

9 lines
275 B
Text
Raw Normal View History

2016-06-30 13:55:44 -04:00
import { ajax } from 'discourse/lib/ajax';
2014-12-22 19:12:26 -05:00
export default Discourse.Route.extend({
model: function() {
2016-06-30 13:55:44 -04:00
return ajax("/admin/customize/emojis.json").then(function(emojis) {
2014-12-22 19:12:26 -05:00
return emojis.map(function (emoji) { return Ember.Object.create(emoji); });
});
}
});