20 lines
597 B
JavaScript
20 lines
597 B
JavaScript
import { action } from "@ember/object";
|
|
import Route from "@ember/routing/route";
|
|
import { service } from "@ember/service";
|
|
|
|
export default class AdminPluginsDiscourseSubscriptionsRoute extends Route {
|
|
@service router;
|
|
|
|
@action
|
|
showSettings() {
|
|
const controller = this.controllerFor("adminSiteSettings");
|
|
this.router
|
|
.transitionTo("adminSiteSettingsCategory", "plugins")
|
|
.then(() => {
|
|
controller.set("filter", "plugin:discourse-subscriptions campaign");
|
|
controller.set("_skipBounce", true);
|
|
controller.filterContentNow("plugins");
|
|
});
|
|
}
|
|
}
|