Browse Source
Merge pull request #6687 from abpframework/fix/asterisk-shown-on-required-length
Revert "fix: show asterisk if required text in validator"
pull/6696/head
Mehmet Erim
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
npm/ng-packs/packages/theme-shared/extensions/src/lib/components/extensible-form/extensible-form-prop.component.ts
|
|
|
@ -1,4 +1,4 @@ |
|
|
|
import { ABP, TrackByService } from '@abp/ng.core'; |
|
|
|
import { ABP, AbpValidators, TrackByService } from '@abp/ng.core'; |
|
|
|
import { |
|
|
|
ChangeDetectionStrategy, |
|
|
|
ChangeDetectorRef, |
|
|
|
@ -168,5 +168,5 @@ export class ExtensibleFormPropComponent implements OnChanges { |
|
|
|
} |
|
|
|
|
|
|
|
function isRequired(validator: ValidatorFn) { |
|
|
|
return validator === Validators.required || validator.toString().includes('required'); |
|
|
|
return validator === Validators.required || validator === AbpValidators.required; |
|
|
|
} |
|
|
|
|