mirror of
https://github.com/discourse/discourse.git
synced 2025-02-28 05:39:55 +08:00

* `@ember/owner` instead of `@ember/application` * `discourse-i18n` instead of `I18n` * `{ service } from "@ember/service"` instead of `inject as service`
19 lines
502 B
JavaScript
19 lines
502 B
JavaScript
import Route from "@ember/routing/route";
|
|
import { service } from "@ember/service";
|
|
import SiteSetting from "admin/models/site-setting";
|
|
|
|
export default class AdminPluginsShowSettingsRoute extends Route {
|
|
@service router;
|
|
|
|
queryParams = {
|
|
filter: { replace: true },
|
|
};
|
|
|
|
async model(params) {
|
|
const plugin = this.modelFor("adminPlugins.show");
|
|
const settings = await SiteSetting.findAll({ plugin: plugin.name });
|
|
|
|
return { plugin, settings, initialFilter: params.filter };
|
|
}
|
|
}
|