From 40510aca344d3c7fa0ec56dda2692df5ecf690b4 Mon Sep 17 00:00:00 2001 From: Artyom Hackimullin Date: Mon, 7 Apr 2025 10:48:49 +0300 Subject: [PATCH] SUPPORT-8932: fix --- .../component/chart/ErvuChartTooltip.ts | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/frontend/src/ts/ervu-dashboard/component/chart/ErvuChartTooltip.ts b/frontend/src/ts/ervu-dashboard/component/chart/ErvuChartTooltip.ts index e9b61b6e..b0687e82 100644 --- a/frontend/src/ts/ervu-dashboard/component/chart/ErvuChartTooltip.ts +++ b/frontend/src/ts/ervu-dashboard/component/chart/ErvuChartTooltip.ts @@ -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) {