Browse Source

Merge remote-tracking branch 'upstream/lts-4.2' into lts-4.3

# Conflicts:
#	ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.ts
pull/15392/head
Vladyslav_Prykhodko 6 months ago
parent
commit
173286a2bd
  1. 2
      ui-ngx/src/app/modules/common/modules-map.ts
  2. 2
      ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.html
  3. 5
      ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.ts
  4. 1
      ui-ngx/src/app/modules/home/pages/entity-view/entity-view-tabs.component.html

2
ui-ngx/src/app/modules/common/modules-map.ts

@ -16,6 +16,7 @@
import * as AngularAnimations from '@angular/animations';
import * as AngularCore from '@angular/core';
import * as AngularCoreRxjsInterop from '@angular/core/rxjs-interop';
import * as AngularCommon from '@angular/common';
import * as AngularForms from '@angular/forms';
import * as AngularPlatformBrowser from '@angular/platform-browser';
@ -355,6 +356,7 @@ class ModulesMap implements IModulesMap {
private modulesMap: {[key: string]: any} = {
'@angular/animations': AngularAnimations,
'@angular/core': this.angularCoreModule20to18Patch(AngularCore),
'@angular/core/rxjs-interop': AngularCoreRxjsInterop,
'@angular/common': AngularCommon,
'@angular/common/http': HttpClientModule,
'@angular/forms': AngularForms,

2
ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.html

@ -34,7 +34,7 @@
</div>
<span class="flex-1"></span>
<button mat-icon-button
*ngIf="attributeScope !== attributeScopeTypes.CLIENT_SCOPE"
*ngIf="attributeScope !== attributeScopeTypes.CLIENT_SCOPE && !disableAddTelemetry"
[disabled]="isLoading$ | async"
(click)="addAttribute($event)"
matTooltip="{{ 'action.add' | translate }}"

5
ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.ts

@ -90,6 +90,7 @@ import { Filters } from '@shared/models/query/query.models';
import { hidePageSizePixelValue } from '@shared/models/constants';
import { DeleteTimeseriesPanelComponent } from '@home/components/attribute/delete-timeseries-panel.component';
import { FormBuilder } from '@angular/forms';
import { coerceBoolean } from '@shared/decorators/coercion';
import { AggregationType, defaultTimewindow } from '@shared/models/time/time.models';
import { TimeService } from '@core/services/time.service';
@ -145,6 +146,10 @@ export class AttributeTableComponent extends PageComponent implements AfterViewI
return this.disableAttributeScopeSelectionValue;
}
@Input()
@coerceBoolean()
disableAddTelemetry: boolean;
@Input()
set disableAttributeScopeSelection(value: boolean) {
this.disableAttributeScopeSelectionValue = coerceBooleanProperty(value);

1
ui-ngx/src/app/modules/home/pages/entity-view/entity-view-tabs.component.html

@ -27,6 +27,7 @@
label="{{ 'attribute.latest-telemetry' | translate }}" #telemetryTab="matTab">
<tb-attribute-table [defaultAttributeScope]="latestTelemetryTypes.LATEST_TELEMETRY"
disableAttributeScopeSelection
disableAddTelemetry
[active]="telemetryTab.isActive"
[entityId]="entity.id"
[entityName]="entity.name">

Loading…
Cancel
Save