Merge pull request #11678 from ArtemDzhereleiko/AD/hot-fix/notification-sent
Fixed next button for notify again dialog
This commit is contained in:
		
						commit
						6fd838639c
					
				@ -46,6 +46,7 @@ import { MatChipGrid } from '@angular/material/chips';
 | 
				
			|||||||
import { coerceBooleanProperty } from '@angular/cdk/coercion';
 | 
					import { coerceBooleanProperty } from '@angular/cdk/coercion';
 | 
				
			||||||
import { SubscriptSizing } from '@angular/material/form-field';
 | 
					import { SubscriptSizing } from '@angular/material/form-field';
 | 
				
			||||||
import { coerceBoolean } from '@shared/decorators/coercion';
 | 
					import { coerceBoolean } from '@shared/decorators/coercion';
 | 
				
			||||||
 | 
					import { isArray } from 'lodash';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Component({
 | 
					@Component({
 | 
				
			||||||
  selector: 'tb-entity-list',
 | 
					  selector: 'tb-entity-list',
 | 
				
			||||||
@ -209,7 +210,7 @@ export class EntityListComponent implements ControlValueAccessor, OnInit, AfterV
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  validate(): ValidationErrors | null {
 | 
					  validate(): ValidationErrors | null {
 | 
				
			||||||
    return this.entityListFormGroup.valid ? null : {
 | 
					    return (isArray(this.modelValue) && this.modelValue.length) || !this.required ? null : {
 | 
				
			||||||
      entities: {valid: false}
 | 
					      entities: {valid: false}
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user