feat(medusa): refactor the way the order edit handle the items (#2255)

* feat(medusa): Reftor the way the order edit works
This commit is contained in:
Adrien de Peretti
2022-09-26 16:01:20 +02:00
committed by GitHub
parent 7e56935e7a
commit d138baf460
25 changed files with 704 additions and 360 deletions
@@ -50,6 +50,23 @@ export function FeatureFlagDecorators(
}
}
export function FeatureFlagClassDecorators(
featureFlag: string,
decorators: ClassDecorator[]
): ClassDecorator {
return function (target) {
setImmediate_((): any => {
if (!featureFlagRouter.isFeatureEnabled(featureFlag)) {
return
}
decorators.forEach((decorator: ClassDecorator) => {
decorator(target)
})
})
}
}
export function FeatureFlagEntity(
featureFlag: string,
name?: string,