discourse/app/assets/javascripts/admin/addon/routes/admin-customize-themes.js
Krzysztof Kotlarek c4ff6bd40e
DEV: remove old themes/components code (#32875)
Recently, themes page was rebranded and put
`/admin/config/customize/themes`. In this PR, old
`/admin/customize/themes` was removed. In addition, when an admin visits
an old URL, they are redirected to the new one.
2025-05-26 09:21:15 +08:00

13 lines
263 B
JavaScript
Vendored

import { action } from "@ember/object";
import Route from "@ember/routing/route";
export default class AdminCustomizeThemesRoute extends Route {
model() {
return this.store.findAll("theme");
}
@action
routeRefreshModel() {
this.refresh();
}
}