import Route from "@ember/routing/route"; import { action, getProperties } from "@ember/object"; import showModal from "discourse/lib/show-modal"; export default class AdminSiteTextIndexRoute extends Route { 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() { showModal("admin-reseed", { admin: true }); } }