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

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

14 lines
378 B
JavaScript
Raw Normal View History

import DiscourseRoute from "discourse/routes/discourse";
import EmberObject from "@ember/object";
2016-07-01 01:55:44 +08:00
import { ajax } from "discourse/lib/ajax";
export default DiscourseRoute.extend({
model() {
2016-07-01 01:55:44 +08:00
return ajax("/admin/customize/emojis.json").then(function (emojis) {
2014-12-23 08:12:26 +08:00
return emojis.map(function (emoji) {
return EmberObject.create(emoji);
2014-12-23 08:12:26 +08:00
});
});
},
});