mirror of
https://github.com/discourse/discourse.git
synced 2024-12-14 15:13:44 +08:00
15 lines
342 B
JavaScript
15 lines
342 B
JavaScript
|
import Route from "@ember/routing/route";
|
||
|
import { service } from "@ember/service";
|
||
|
|
||
|
export default class AdminPluginsIndexRoute extends Route {
|
||
|
@service adminPluginNavManager;
|
||
|
|
||
|
afterModel() {
|
||
|
this.adminPluginNavManager.viewingPluginsList = true;
|
||
|
}
|
||
|
|
||
|
deactivate() {
|
||
|
this.adminPluginNavManager.viewingPluginsList = false;
|
||
|
}
|
||
|
}
|