|
|
|
@ -40,6 +40,10 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</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" |
|
|
|
label="{{'device-profile.alarm-rules-with-count' | translate: |
|
|
|
{count: this.detailsForm.get('profileData.alarms').value?.length ? this.detailsForm.get('profileData.alarms').value.length : 0} |
|
|
|
@ -69,10 +73,6 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</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" |
|
|
|
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> |
|
|
|
|