SUPPORT-8932: fix

This commit is contained in:
Artyom Hackimullin 2025-04-07 10:48:49 +03:00
parent 5ff1df5d2a
commit 40510aca34

View file

@ -1,12 +1,11 @@
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ElementRef,
Input,
OnChanges,
SimpleChanges
} from '@angular/core';
import {Control, Visible} from "@webbpm/base-package";
import {Visible} from "@webbpm/base-package";
@Component({
moduleId: module.id,
@ -14,21 +13,17 @@ import {Control, Visible} from "@webbpm/base-package";
templateUrl: `./../../../../../src/resources/template/ervu-dashboard/ErvuChartTooltip.html`,
changeDetection: ChangeDetectionStrategy.OnPush
})
export class ErvuChartTooltip extends Control {
export class ErvuChartTooltip implements OnChanges {
@Input()
public tooltipModel: any;
@Input()
public visible: boolean = false;
@Input()
public position: any;
@Visible("false")
public visible: boolean = false;
@Visible("false")
public items: any[];
constructor(el: ElementRef, cd: ChangeDetectorRef) {
super(el, cd)
}
ngOnChanges(changes: SimpleChanges): void {
if ('position' in changes) {
if (!this.tooltipModel || this.tooltipModel.opacity == 0 || this.tooltipModel.body.length == 0) {