2019-10-22 09:46:10 -04:00
|
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
2019-10-29 15:23:50 -04:00
|
|
|
import EmberObject from "@ember/object";
|
2016-06-30 13:55:44 -04:00
|
|
|
import { ajax } from "discourse/lib/ajax";
|
2019-10-22 09:46:10 -04:00
|
|
|
|
2023-03-15 09:17:51 -04:00
|
|
|
export default class AdminEmojisRoute extends DiscourseRoute {
|
2021-11-13 08:01:55 -05:00
|
|
|
model() {
|
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) {
|
2019-10-29 15:23:50 -04:00
|
|
|
return EmberObject.create(emoji);
|
2014-12-22 19:12:26 -05:00
|
|
|
});
|
|
|
|
});
|
2023-03-15 09:17:51 -04:00
|
|
|
}
|
|
|
|
}
|