mirror of
https://github.com/discourse/discourse.git
synced 2024-12-23 19:26:19 +08:00
14 lines
387 B
JavaScript
14 lines
387 B
JavaScript
|
import DiscourseRoute from "discourse/routes/discourse";
|
||
|
import I18n from "discourse-i18n";
|
||
|
|
||
|
export default class AdminConfigLookAndFeelThemesRoute extends DiscourseRoute {
|
||
|
async model() {
|
||
|
const themes = await this.store.findAll("theme");
|
||
|
return themes.reject((t) => t.component);
|
||
|
}
|
||
|
|
||
|
titleToken() {
|
||
|
return I18n.t("admin.config_areas.look_and_feel.themes.title");
|
||
|
}
|
||
|
}
|