|
|
@@ -1,6 +1,7 @@
|
|
|
import {Component, OnInit, ViewRef} from '@angular/core';
|
|
|
|
|
|
import {HsDialogContainerService} from 'hslayers-ng';
|
|
|
+import {HsLanguageService} from 'hslayers-ng';
|
|
|
import {HsLayoutService} from 'hslayers-ng';
|
|
|
import {HsPanelComponent} from 'hslayers-ng';
|
|
|
|
|
|
@@ -27,6 +28,7 @@ export class AdjusterComponent implements HsPanelComponent, OnInit {
|
|
|
public adjusterService: AdjusterService,
|
|
|
public adjusterPresetsService: AdjusterPresetsService,
|
|
|
public hsDialogContainerService: HsDialogContainerService,
|
|
|
+ public hsLanguageService: HsLanguageService,
|
|
|
public hsLayoutService: HsLayoutService
|
|
|
) {
|
|
|
//this.descriptionVisible = false;
|
|
|
@@ -46,6 +48,10 @@ export class AdjusterComponent implements HsPanelComponent, OnInit {
|
|
|
return factor.datasets.length > 0;
|
|
|
}
|
|
|
|
|
|
+ getLabelInCurrentLang(labels) {
|
|
|
+ return this.adjusterPresetsService.getLabelInLang(labels, this.hsLanguageService.getCurrentLanguageCode());
|
|
|
+ }
|
|
|
+
|
|
|
isVisible(): boolean {
|
|
|
return this.hsLayoutService.panelVisible('adjuster');
|
|
|
}
|