NIFI-13477: (#9075)

- Refreshing the controller service listing after creation or deletion to ensure allowable values of other services is accurate.

This closes #9075
This commit is contained in:
Matt Gilman 2024-07-12 00:51:22 -04:00 committed by GitHub
parent cbdabccd6b
commit 8f85b58dc5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -32,6 +32,7 @@ export class NifiTooltipDirective<T> implements OnDestroy {
private closeTimer = -1;
private overlayRef: OverlayRef | null = null;
private overTip = false;
constructor(
private element: ElementRef<HTMLElement>,
@ -47,7 +48,7 @@ export class NifiTooltipDirective<T> implements OnDestroy {
@HostListener('mouseleave')
mouseLeave() {
if (this.overlayRef?.hasAttached()) {
if (this.overlayRef?.hasAttached() && !this.overTip) {
if (this.delayClose) {
this.closeTimer = window.setTimeout(() => {
this.overlayRef?.detach();
@ -96,10 +97,13 @@ export class NifiTooltipDirective<T> implements OnDestroy {
window.clearTimeout(this.closeTimer);
this.closeTimer = -1;
}
this.overTip = true;
});
tooltipReference.location.nativeElement.addEventListener('mouseleave', () => {
this.overlayRef?.detach();
this.closeTimer = -1;
this.overTip = false;
});
}