mirror of
https://github.com/discourse/discourse.git
synced 2024-12-22 14:33:47 +08:00
21 lines
444 B
JavaScript
21 lines
444 B
JavaScript
|
import DiscourseRoute from "discourse/routes/discourse";
|
||
|
import I18n from "discourse-i18n";
|
||
|
import SiteSetting from "admin/models/site-setting";
|
||
|
|
||
|
export default class AdminEmojisSettingsRoute extends DiscourseRoute {
|
||
|
queryParams = {
|
||
|
filter: { replace: true },
|
||
|
};
|
||
|
|
||
|
titleToken() {
|
||
|
return I18n.t("settings");
|
||
|
}
|
||
|
|
||
|
async model() {
|
||
|
return {
|
||
|
settings: await SiteSetting.findAll(),
|
||
|
initialFilter: "emoji",
|
||
|
};
|
||
|
}
|
||
|
}
|