2019-10-23 12:39:32 -04:00
|
|
|
import Route from "@ember/routing/route";
|
2019-03-18 16:09:13 -04:00
|
|
|
import showModal from "discourse/lib/show-modal";
|
2019-11-04 10:56:16 -05:00
|
|
|
import { getProperties } from "@ember/object";
|
2019-03-18 16:09:13 -04:00
|
|
|
|
2019-10-23 12:39:32 -04:00
|
|
|
export default Route.extend({
|
2015-11-23 16:45:05 -05:00
|
|
|
queryParams: {
|
2015-11-30 15:22:58 -05:00
|
|
|
q: { replace: true },
|
|
|
|
overridden: { replace: true }
|
2015-11-23 16:45:05 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
model(params) {
|
2015-11-30 15:22:58 -05:00
|
|
|
return this.store.find(
|
|
|
|
"site-text",
|
2019-11-04 10:56:16 -05:00
|
|
|
getProperties(params, "q", "overridden")
|
2015-11-30 15:22:58 -05:00
|
|
|
);
|
2015-11-23 16:45:05 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
setupController(controller, model) {
|
|
|
|
controller.set("siteTexts", model);
|
2019-03-18 16:09:13 -04:00
|
|
|
},
|
|
|
|
|
|
|
|
actions: {
|
|
|
|
showReseedModal() {
|
|
|
|
showModal("admin-reseed", { admin: true });
|
|
|
|
}
|
2015-11-23 16:45:05 -05:00
|
|
|
}
|
|
|
|
});
|