discourse/app/assets/javascripts/admin/addon/routes/admin-emojis-settings.js
Ted Johansson 189d98f3ca
DEV: Convert admin emojis UI to new layout (#29615)
This PR converts the custom emoji UI in the admin pages to follow the new admin UI guidelines.
2024-11-11 15:04:15 +08:00

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",
};
}
}