CountWidget add to label customTranslation()

This commit is contained in:
deaflynx 2023-11-28 12:54:31 +02:00
parent 81e539e2c5
commit 44d54bf9a5

View File

@ -42,6 +42,7 @@ import {
} from '@home/components/widget/lib/count/count-widget.models';
import { coerceBoolean } from '@shared/decorators/coercion';
import { ResizeObserver } from '@juggle/resize-observer';
import { UtilsService } from '@core/services/utils.service';
const layoutHeight = 36;
const layoutHeightWithTitle = 60;
@ -104,6 +105,7 @@ export class CountWidgetComponent implements OnInit, AfterViewInit, OnDestroy {
private hasTitle = false;
constructor(private renderer: Renderer2,
private utils: UtilsService,
private cd: ChangeDetectorRef) {
}
@ -114,7 +116,7 @@ export class CountWidgetComponent implements OnInit, AfterViewInit, OnDestroy {
this.layout = this.settings.layout;
this.showLabel = this.settings.showLabel;
this.label = this.settings.label;
this.label = this.utils.customTranslation(this.settings.label, this.settings.label);
this.labelStyle = textStyle(this.settings.labelFont);
this.labelColor = ColorProcessor.fromSettings(this.settings.labelColor);