Moved calculated fields in device profile tabs
This commit is contained in:
parent
fb0b80a353
commit
5aacd04e15
@ -132,7 +132,8 @@
|
|||||||
}
|
}
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
@if (outputFormGroup.get('type').value === OutputType.Attribute && data.entityId.entityType === EntityType.DEVICE) {
|
@if (outputFormGroup.get('type').value === OutputType.Attribute
|
||||||
|
&& (data.entityId.entityType === EntityType.DEVICE || data.entityId.entityType === EntityType.DEVICE_PROFILE)) {
|
||||||
<mat-form-field class="flex-1" appearance="outline" subscriptSizing="dynamic">
|
<mat-form-field class="flex-1" appearance="outline" subscriptSizing="dynamic">
|
||||||
<mat-label>{{ 'calculated-fields.attribute-scope' | translate }}</mat-label>
|
<mat-label>{{ 'calculated-fields.attribute-scope' | translate }}</mat-label>
|
||||||
<mat-select formControlName="scope" class="w-full">
|
<mat-select formControlName="scope" class="w-full">
|
||||||
|
|||||||
@ -40,6 +40,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</mat-tab>
|
</mat-tab>
|
||||||
|
<mat-tab *ngIf="entity && authUser.authority === authorities.TENANT_ADMIN && !isEdit"
|
||||||
|
label="{{ 'entity.type-calculated-fields' | translate }}" #calculatedFieldsTab="matTab">
|
||||||
|
<tb-calculated-fields-table [active]="calculatedFieldsTab.isActive" [entityId]="entity.id" [entityName]="entity.name"/>
|
||||||
|
</mat-tab>
|
||||||
<mat-tab *ngIf="entity" #alarmRules="matTab"
|
<mat-tab *ngIf="entity" #alarmRules="matTab"
|
||||||
label="{{'device-profile.alarm-rules-with-count' | translate:
|
label="{{'device-profile.alarm-rules-with-count' | translate:
|
||||||
{count: this.detailsForm.get('profileData.alarms').value?.length ? this.detailsForm.get('profileData.alarms').value.length : 0}
|
{count: this.detailsForm.get('profileData.alarms').value?.length ? this.detailsForm.get('profileData.alarms').value.length : 0}
|
||||||
@ -69,10 +73,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</mat-tab>
|
</mat-tab>
|
||||||
<mat-tab *ngIf="entity && authUser.authority === authorities.TENANT_ADMIN && !isEdit"
|
|
||||||
label="{{ 'entity.type-calculated-fields' | translate }}" #calculatedFieldsTab="matTab">
|
|
||||||
<tb-calculated-fields-table [active]="calculatedFieldsTab.isActive" [entityId]="entity.id" [entityName]="entity.name"/>
|
|
||||||
</mat-tab>
|
|
||||||
<mat-tab *ngIf="entity && !isEdit" #auditLogsTab="matTab"
|
<mat-tab *ngIf="entity && !isEdit" #auditLogsTab="matTab"
|
||||||
label="{{ 'audit-log.audit-logs' | translate }}">
|
label="{{ 'audit-log.audit-logs' | translate }}">
|
||||||
<tb-audit-log-table detailsMode="true" [active]="auditLogsTab.isActive" [auditLogMode]="auditLogModes.ENTITY" [entityId]="entity.id"></tb-audit-log-table>
|
<tb-audit-log-table detailsMode="true" [active]="auditLogsTab.isActive" [auditLogMode]="auditLogModes.ENTITY" [entityId]="entity.id"></tb-audit-log-table>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user