mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 07:51:36 +08:00
5c652dd7a1
<img width="728" alt="Screenshot 2023-08-24 at 1 35 53 PM" src="https://github.com/discourse/discourse/assets/50783505/5532eea4-1238-43dc-b2b7-a511e78d1f97">
32 lines
738 B
JavaScript
32 lines
738 B
JavaScript
import Route from "@ember/routing/route";
|
|
import { action, getProperties } from "@ember/object";
|
|
import { inject as service } from "@ember/service";
|
|
import ReseedModal from "admin/components/modal/reseed";
|
|
|
|
export default class AdminSiteTextIndexRoute extends Route {
|
|
@service modal;
|
|
|
|
queryParams = {
|
|
q: { replace: true },
|
|
overridden: { replace: true },
|
|
outdated: { replace: true },
|
|
locale: { replace: true },
|
|
};
|
|
|
|
model(params) {
|
|
return this.store.find(
|
|
"site-text",
|
|
getProperties(params, "q", "overridden", "outdated", "locale")
|
|
);
|
|
}
|
|
|
|
setupController(controller, model) {
|
|
controller.set("siteTexts", model);
|
|
}
|
|
|
|
@action
|
|
showReseedModal() {
|
|
this.modal.show(ReseedModal);
|
|
}
|
|
}
|