mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 07:36:28 +08:00
34ed35e174
Flag actions must be added to `staff_actions` method to be filterable.
13 lines
316 B
JavaScript
13 lines
316 B
JavaScript
import Controller from "@ember/controller";
|
|
import { service } from "@ember/service";
|
|
|
|
export default class AdminConfigFlagsController extends Controller {
|
|
@service router;
|
|
|
|
get hideTabs() {
|
|
return ["adminConfig.flags.new", "adminConfig.flags.edit"].includes(
|
|
this.router.currentRouteName
|
|
);
|
|
}
|
|
}
|