Remove filters feature flag

[MAILPOET-4586]
This commit is contained in:
Jan Jakes
2023-06-16 16:26:38 +02:00
committed by Aschepikov
parent cddefd8414
commit 088c8e5aed
2 changed files with 1 additions and 5 deletions

View File

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

View File

@@ -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 */