2019-03-19 04:09:13 +08:00
|
|
|
import showModal from "discourse/lib/show-modal";
|
|
|
|
|
2015-11-24 05:45:05 +08:00
|
|
|
export default Ember.Route.extend({
|
|
|
|
queryParams: {
|
2015-12-01 04:22:58 +08:00
|
|
|
q: { replace: true },
|
|
|
|
overridden: { replace: true }
|
2015-11-24 05:45:05 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
model(params) {
|
2018-06-15 23:03:24 +08:00
|
|
|
return this.store.find(
|
|
|
|
"site-text",
|
|
|
|
Ember.getProperties(params, "q", "overridden")
|
|
|
|
);
|
2015-11-24 05:45:05 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
setupController(controller, model) {
|
2018-06-15 23:03:24 +08:00
|
|
|
controller.set("siteTexts", model);
|
2019-03-19 04:09:13 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
actions: {
|
|
|
|
showReseedModal() {
|
|
|
|
showModal("admin-reseed", { admin: true });
|
|
|
|
}
|
2015-11-24 05:45:05 +08:00
|
|
|
}
|
|
|
|
});
|