discourse/app/assets/javascripts/admin/addon/controllers/admin-config-flags.js
Krzysztof Kotlarek 34ed35e174
FIX: filterable staff logs for flags (#29695)
Flag actions must be added to `staff_actions` method to be filterable.
2024-11-12 11:23:18 +11:00

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
);
}
}