Browse Source
Merge pull request #7471 from ArtemDzhereleiko/AD/bug-fix/event-filter
[3.4.2] UI: Fixed height and console error for Event filter panel
pull/7522/head
Andrew Shvayka
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
1 deletions
-
ui-ngx/src/app/modules/home/components/event/event-filter-panel.component.ts
-
ui-ngx/src/app/modules/home/components/event/event-table-config.ts
|
|
|
@ -108,7 +108,7 @@ export class EventFilterPanelComponent { |
|
|
|
|
|
|
|
changeIsError(value: boolean | string) { |
|
|
|
if (this.conditionError && value === '') { |
|
|
|
this.eventFilterFormGroup.get('error').reset('', {emitEvent: false}); |
|
|
|
this.eventFilterFormGroup.get('errorStr').reset('', {emitEvent: false}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -440,6 +440,8 @@ export class EventTableConfig extends EntityTableConfig<Event, TimePageLink> { |
|
|
|
}; |
|
|
|
config.positionStrategy = this.overlay.position().flexibleConnectedTo(target as HTMLElement) |
|
|
|
.withPositions([connectedPosition]); |
|
|
|
config.maxHeight = '70vh'; |
|
|
|
config.height = 'min-content'; |
|
|
|
|
|
|
|
const overlayRef = this.overlay.create(config); |
|
|
|
overlayRef.backdropClick().subscribe(() => { |
|
|
|
|