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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
385 B
Plaintext
Raw Normal View History

import EmberObject from "@ember/object";
import DiscourseRoute from "discourse/routes/discourse";
2016-06-30 13:55:44 -04:00
import { ajax } from "discourse/lib/ajax";
export default DiscourseRoute.extend({
2014-12-22 19:12:26 -05:00
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 EmberObject.create(emoji);
2014-12-22 19:12:26 -05:00
});
});
}
});