mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-23 00:24:19 +08:00
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.
13 lines
263 B
JavaScript
Vendored
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();
|
|
}
|
|
}
|