discourse/app/assets/javascripts/admin/routes/admin-site-text-index.js.es6
2019-11-04 14:24:30 -05:00

28 lines
564 B
JavaScript

import Route from "@ember/routing/route";
import showModal from "discourse/lib/show-modal";
import { getProperties } from "@ember/object";
export default Route.extend({
queryParams: {
q: { replace: true },
overridden: { replace: true }
},
model(params) {
return this.store.find(
"site-text",
getProperties(params, "q", "overridden")
);
},
setupController(controller, model) {
controller.set("siteTexts", model);
},
actions: {
showReseedModal() {
showModal("admin-reseed", { admin: true });
}
}
});