mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 05:53:55 +08:00
48193767bf
Automatically generated by `eslint --fix` to satisfy the updated configuration
26 lines
701 B
JavaScript
26 lines
701 B
JavaScript
import Route from "@ember/routing/route";
|
|
import { inject as service } from "@ember/service";
|
|
import { disableImplicitInjections } from "discourse/lib/implicit-injections";
|
|
|
|
@disableImplicitInjections
|
|
export default class AdminSiteTextIndexRoute extends Route {
|
|
@service siteSettings;
|
|
@service store;
|
|
|
|
queryParams = {
|
|
q: { replace: true },
|
|
overridden: { replace: true },
|
|
outdated: { replace: true },
|
|
locale: { replace: true },
|
|
};
|
|
|
|
model(params) {
|
|
return this.store.find("site-text", {
|
|
q: params.q,
|
|
overridden: params.overridden ?? false,
|
|
outdated: params.outdated ?? false,
|
|
locale: params.locale ?? this.siteSettings.default_locale,
|
|
});
|
|
}
|
|
}
|