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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user