Browse Source
Merge pull request #11678 from ArtemDzhereleiko/AD/hot-fix/notification-sent
Fixed next button for notify again dialog
pull/11736/head
Igor Kulikov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
1 deletions
-
ui-ngx/src/app/shared/components/entity/entity-list.component.ts
|
|
|
@ -46,6 +46,7 @@ import { MatChipGrid } from '@angular/material/chips'; |
|
|
|
import { coerceBooleanProperty } from '@angular/cdk/coercion'; |
|
|
|
import { SubscriptSizing } from '@angular/material/form-field'; |
|
|
|
import { coerceBoolean } from '@shared/decorators/coercion'; |
|
|
|
import { isArray } from 'lodash'; |
|
|
|
|
|
|
|
@Component({ |
|
|
|
selector: 'tb-entity-list', |
|
|
|
@ -209,7 +210,7 @@ export class EntityListComponent implements ControlValueAccessor, OnInit, AfterV |
|
|
|
} |
|
|
|
|
|
|
|
validate(): ValidationErrors | null { |
|
|
|
return this.entityListFormGroup.valid ? null : { |
|
|
|
return (isArray(this.modelValue) && this.modelValue.length) || !this.required ? null : { |
|
|
|
entities: {valid: false} |
|
|
|
}; |
|
|
|
} |
|
|
|
|