Browse Source

UI: Fixed translation and gap for widget setting mobile mod

pull/7903/head
Artem Dzhereleiko 4 years ago
parent
commit
85afb5de2b
  1. 2
      ui-ngx/src/app/modules/home/components/widget/data-keys.component.ts
  2. 2
      ui-ngx/src/app/modules/home/components/widget/widget-config.component.html

2
ui-ngx/src/app/modules/home/components/widget/data-keys.component.ts

@ -250,7 +250,7 @@ export class DataKeysComponent implements ControlValueAccessor, OnInit, AfterVie
this.secondaryPlaceholder = '+' + this.translate.instant('datakey.latest-key-function');
} else if (this.widgetType === widgetType.alarm) {
this.placeholder = this.translate.instant('datakey.alarm-key-functions');
this.secondaryPlaceholder = '+' + this.translate.instant('alarm-key-function');
this.secondaryPlaceholder = '+' + this.translate.instant('datakey.alarm-key-function');
} else {
this.placeholder = this.translate.instant('datakey.timeseries-key-functions');
this.secondaryPlaceholder = '+' + this.translate.instant('datakey.timeseries-key-function');

2
ui-ngx/src/app/modules/home/components/widget/widget-config.component.html

@ -488,7 +488,7 @@
<legend class="group-title" translate>widget-config.mobile-mode-settings</legend>
<mat-expansion-panel class="tb-settings">
<mat-expansion-panel-header>
<mat-panel-title>
<mat-panel-title fxLayout.xs="column" fxLayout="row" fxLayoutGap="8px">
<mat-slide-toggle formControlName="mobileHide" (click)="$event.stopPropagation()" fxLayoutAlign="center">
{{ 'widget-config.mobile-hide' | translate }}
</mat-slide-toggle>

Loading…
Cancel
Save