mirror of https://github.com/apache/nifi.git
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:
parent
cbdabccd6b
commit
8f85b58dc5
|
@ -32,6 +32,7 @@ export class NifiTooltipDirective<T> implements OnDestroy {
|
||||||
|
|
||||||
private closeTimer = -1;
|
private closeTimer = -1;
|
||||||
private overlayRef: OverlayRef | null = null;
|
private overlayRef: OverlayRef | null = null;
|
||||||
|
private overTip = false;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private element: ElementRef<HTMLElement>,
|
private element: ElementRef<HTMLElement>,
|
||||||
|
@ -47,7 +48,7 @@ export class NifiTooltipDirective<T> implements OnDestroy {
|
||||||
|
|
||||||
@HostListener('mouseleave')
|
@HostListener('mouseleave')
|
||||||
mouseLeave() {
|
mouseLeave() {
|
||||||
if (this.overlayRef?.hasAttached()) {
|
if (this.overlayRef?.hasAttached() && !this.overTip) {
|
||||||
if (this.delayClose) {
|
if (this.delayClose) {
|
||||||
this.closeTimer = window.setTimeout(() => {
|
this.closeTimer = window.setTimeout(() => {
|
||||||
this.overlayRef?.detach();
|
this.overlayRef?.detach();
|
||||||
|
@ -96,10 +97,13 @@ export class NifiTooltipDirective<T> implements OnDestroy {
|
||||||
window.clearTimeout(this.closeTimer);
|
window.clearTimeout(this.closeTimer);
|
||||||
this.closeTimer = -1;
|
this.closeTimer = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.overTip = true;
|
||||||
});
|
});
|
||||||
tooltipReference.location.nativeElement.addEventListener('mouseleave', () => {
|
tooltipReference.location.nativeElement.addEventListener('mouseleave', () => {
|
||||||
this.overlayRef?.detach();
|
this.overlayRef?.detach();
|
||||||
this.closeTimer = -1;
|
this.closeTimer = -1;
|
||||||
|
this.overTip = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue