Skip to content

Commit

Permalink
fix: code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryT-CG committed Nov 18, 2024
1 parent e5fad6c commit 513674c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/app/shared/shared.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ import { ImageContainerComponent } from './image-container/image-container.compo
LabelResolver,
{ provide: DialogService, useClass: PortalDialogService },
provideErrorTailorConfig({
controlErrorsOn: { async: true, blur: true, change: true },
errors: {
useFactory: (i18n: TranslateService) => {
console.log('error tailor')
return {
required: () => i18n.instant('VALIDATION.ERRORS.EMPTY_REQUIRED_FIELD'),
maxlength: ({ requiredLength }) =>
Expand All @@ -144,8 +144,7 @@ import { ImageContainerComponent } from './image-container/image-container.compo
return ['INPUT', 'TEXTAREA', 'SELECT', 'CUSTOM-DATE', 'P-CALENDAR', 'P-DROPDOWN'].some(
(selector) => element.tagName === selector
)
},
controlErrorsOn: { async: true, blur: true, change: true }
}
})
]
})
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const config = withModuleFederationPlugin({
'@angular/platform-browser': { requiredVersion: 'auto', includeSecondaries: true },
'@angular/router': { requiredVersion: 'auto', includeSecondaries: true },
'@ngx-translate/core': { requiredVersion: 'auto' },
'@ngneat/error-tailor': { requiredVersion: '5.0.1', includeSecondaries: true },
'@ngneat/error-tailor': { requiredVersion: 'auto', includeSecondaries: true },
primeng: { requiredVersion: 'auto', includeSecondaries: true },
rxjs: { requiredVersion: 'auto', includeSecondaries: true },
'@onecx/accelerator': { requiredVersion: 'auto', includeSecondaries: true },
Expand Down

0 comments on commit 513674c

Please sign in to comment.