UI: Remove rule node unnecessary translate pipe

This commit is contained in:
Vladyslav_Prykhodko 2025-01-08 17:36:25 +02:00
parent 038dea7810
commit 107f7237a9
5 changed files with 8 additions and 8 deletions

View File

@ -16,7 +16,7 @@
--> -->
<section class="flex flex-col" [formGroup]="deviceRelationsQueryFormGroup"> <section class="flex flex-col" [formGroup]="deviceRelationsQueryFormGroup">
<div class="flex flex-row gap-5.5"> <div class="flex flex-row gap-5">
<mat-form-field class="mat-block max-w-50% flex-full" subscriptSizing="dynamic" style="min-width: 100px;" hideRequiredMarker> <mat-form-field class="mat-block max-w-50% flex-full" subscriptSizing="dynamic" style="min-width: 100px;" hideRequiredMarker>
<mat-label translate>relation.direction</mat-label> <mat-label translate>relation.direction</mat-label>
<mat-select required formControlName="direction"> <mat-select required formControlName="direction">

View File

@ -16,7 +16,7 @@
--> -->
<div class="tb-form-panel no-padding no-border" [formGroup]="attributeControlGroup"> <div class="tb-form-panel no-padding no-border" [formGroup]="attributeControlGroup">
<tb-example-hint [hintText]="'tb.rulenode.kv-map-pattern-hint' | translate" <tb-example-hint [hintText]="'tb.rulenode.kv-map-pattern-hint'"
[popupHelpLink]="popupHelpLink"></tb-example-hint> [popupHelpLink]="popupHelpLink"></tb-example-hint>
<tb-string-items-list subscriptSizing="dynamic" class="mat-block" editable <tb-string-items-list subscriptSizing="dynamic" class="mat-block" editable
(focusout)="onTouched()" (focusout)="onTouched()"

View File

@ -123,7 +123,7 @@
{{ 'tb.rulenode.end-interval-required' | translate }} {{ 'tb.rulenode.end-interval-required' | translate }}
</mat-error> </mat-error>
</mat-form-field> </mat-form-field>
<tb-example-hint [hintText]="'tb.rulenode.metadata-dynamic-interval-hint' | translate" <tb-example-hint [hintText]="'tb.rulenode.metadata-dynamic-interval-hint'"
popupHelpLink="rulenode/originator_telemetry_node_fields_templatization"> popupHelpLink="rulenode/originator_telemetry_node_fields_templatization">
</tb-example-hint> </tb-example-hint>
</div> </div>

View File

@ -37,14 +37,14 @@
{{ deduplicationStrategiesTranslations.get(strategy) | translate }} {{ deduplicationStrategiesTranslations.get(strategy) | translate }}
</tb-toggle-option> </tb-toggle-option>
</tb-toggle-select> </tb-toggle-select>
<tb-example-hint [hintText]="'tb.rulenode.strategy-all-hint' | translate" <tb-example-hint [hintText]="'tb.rulenode.strategy-all-hint'"
*ngIf="deduplicationConfigForm.get('strategy').value === 'ALL'"> *ngIf="deduplicationConfigForm.get('strategy').value === 'ALL'">
</tb-example-hint> </tb-example-hint>
<tb-example-hint [hintText]="'tb.rulenode.strategy-first-hint' | translate" <tb-example-hint [hintText]="'tb.rulenode.strategy-first-hint'"
textAlign="'center'" textAlign="'center'"
*ngIf="deduplicationConfigForm.get('strategy').value === 'FIRST'"> *ngIf="deduplicationConfigForm.get('strategy').value === 'FIRST'">
</tb-example-hint> </tb-example-hint>
<tb-example-hint [hintText]="'tb.rulenode.strategy-last-hint' | translate" <tb-example-hint [hintText]="'tb.rulenode.strategy-last-hint'"
textAlign="'center'" textAlign="'center'"
*ngIf="deduplicationConfigForm.get('strategy').value === 'LAST'"> *ngIf="deduplicationConfigForm.get('strategy').value === 'LAST'">
</tb-example-hint> </tb-example-hint>

View File

@ -45,7 +45,7 @@
<div class="tb-form-panel stroked"> <div class="tb-form-panel stroked">
<div class="tb-form-panel no-padding no-border"> <div class="tb-form-panel no-padding no-border">
<div class="tb-form-panel-title" translate>tb.rulenode.recipients</div> <div class="tb-form-panel-title" translate>tb.rulenode.recipients</div>
<tb-example-hint [hintText]="'tb.rulenode.recipients-block-main-hint' | translate" <tb-example-hint [hintText]="'tb.rulenode.recipients-block-main-hint'"
popupHelpLink="rulenode/to_email_node_fields_templatization"> popupHelpLink="rulenode/to_email_node_fields_templatization">
</tb-example-hint> </tb-example-hint>
</div> </div>
@ -82,7 +82,7 @@
</div> </div>
<div class="tb-form-panel stroked"> <div class="tb-form-panel stroked">
<div class="tb-form-panel-title" translate>tb.rulenode.message-subject-and-content</div> <div class="tb-form-panel-title" translate>tb.rulenode.message-subject-and-content</div>
<tb-example-hint [hintText]="'tb.rulenode.kv-map-pattern-hint' | translate" <tb-example-hint [hintText]="'tb.rulenode.kv-map-pattern-hint'"
popupHelpLink="rulenode/to_email_node_fields_templatization"> popupHelpLink="rulenode/to_email_node_fields_templatization">
</tb-example-hint> </tb-example-hint>
<section> <section>