mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 07:23:39 +08:00
27 lines
523 B
JavaScript
27 lines
523 B
JavaScript
import Route from "@ember/routing/route";
|
|
import showModal from "discourse/lib/show-modal";
|
|
|
|
export default Route.extend({
|
|
queryParams: {
|
|
q: { replace: true },
|
|
overridden: { replace: true }
|
|
},
|
|
|
|
model(params) {
|
|
return this.store.find(
|
|
"site-text",
|
|
Ember.getProperties(params, "q", "overridden")
|
|
);
|
|
},
|
|
|
|
setupController(controller, model) {
|
|
controller.set("siteTexts", model);
|
|
},
|
|
|
|
actions: {
|
|
showReseedModal() {
|
|
showModal("admin-reseed", { admin: true });
|
|
}
|
|
}
|
|
});
|