Remove filters feature flag
[MAILPOET-4586]
This commit is contained in:
@@ -3,7 +3,6 @@ import { useSelect } from '@wordpress/data';
|
||||
import { storeName } from '../../../store';
|
||||
import { FiltersPanel } from '../../filters';
|
||||
import { StepCard } from '../../step-card';
|
||||
import { MailPoet } from '../../../../../mailpoet';
|
||||
|
||||
function StepSidebarGeneralError(): JSX.Element {
|
||||
const { errors } = useSelect(
|
||||
@@ -64,8 +63,7 @@ export function StepSidebar(): JSX.Element {
|
||||
key={selectedStep.id}
|
||||
/>
|
||||
|
||||
{MailPoet.FeaturesController.isSupported('automation_filters') &&
|
||||
selectedStep.type === 'trigger' && <FiltersPanel />}
|
||||
{selectedStep.type === 'trigger' && <FiltersPanel />}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
@@ -7,14 +7,12 @@ use MailPoetVendor\Doctrine\DBAL\Exception\TableNotFoundException;
|
||||
class FeaturesController {
|
||||
const LANDINGPAGE_AB_TEST_DEBUGGER = 'landingpage_ab_test_debugger';
|
||||
const FEATURE_BRAND_TEMPLATES = 'brand_templates';
|
||||
const AUTOMATION_FILTERS = 'automation_filters';
|
||||
|
||||
// Define feature defaults in the array below in the following form:
|
||||
// self::FEATURE_NAME_OF_FEATURE => true,
|
||||
private $defaults = [
|
||||
self::LANDINGPAGE_AB_TEST_DEBUGGER => false,
|
||||
self::FEATURE_BRAND_TEMPLATES => false,
|
||||
self::AUTOMATION_FILTERS => false,
|
||||
];
|
||||
|
||||
/** @var array|null */
|
||||
|
Reference in New Issue
Block a user