|
|
|
@ -15,33 +15,27 @@ |
|
|
|
limitations under the License. |
|
|
|
|
|
|
|
--> |
|
|
|
<mat-tab *ngIf="entity" |
|
|
|
label="{{ 'attribute.attributes' | translate }}" #attributesTab="matTab"> |
|
|
|
<tb-attribute-table [defaultAttributeScope]="attributeScopes.SERVER_SCOPE" |
|
|
|
[active]="attributesTab.isActive" |
|
|
|
[entityId]="entity.id" |
|
|
|
[entityName]="entity.name"> |
|
|
|
</tb-attribute-table> |
|
|
|
</mat-tab> |
|
|
|
<mat-tab *ngIf="entity" |
|
|
|
label="{{ 'attribute.latest-telemetry' | translate }}" #telemetryTab="matTab"> |
|
|
|
<tb-attribute-table [defaultAttributeScope]="latestTelemetryTypes.LATEST_TELEMETRY" |
|
|
|
disableAttributeScopeSelection |
|
|
|
[active]="telemetryTab.isActive" |
|
|
|
[entityId]="entity.id" |
|
|
|
[entityName]="entity.name"> |
|
|
|
</tb-attribute-table> |
|
|
|
</mat-tab> |
|
|
|
<mat-tab *ngIf="entity" |
|
|
|
label="{{ 'alarm.alarms' | translate }}" #alarmsTab="matTab"> |
|
|
|
<tb-alarm-table [active]="alarmsTab.isActive" [entityId]="entity.id"></tb-alarm-table> |
|
|
|
</mat-tab> |
|
|
|
<mat-tab *ngIf="entity" |
|
|
|
label="{{ 'tenant.events' | translate }}" #eventsTab="matTab"> |
|
|
|
<tb-event-table [defaultEventType]="eventTypes.ERROR" [active]="eventsTab.isActive" [tenantId]="nullUid" |
|
|
|
[entityId]="entity.id"></tb-event-table> |
|
|
|
</mat-tab> |
|
|
|
<mat-tab *ngIf="entity" |
|
|
|
label="{{ 'relation.relations' | translate }}" #relationsTab="matTab"> |
|
|
|
<tb-relation-table [active]="relationsTab.isActive" [entityId]="entity.id"></tb-relation-table> |
|
|
|
</mat-tab> |
|
|
|
@if (entity) { |
|
|
|
<mat-tab label="{{ 'attribute.attributes' | translate }}" #attributesTab="matTab"> |
|
|
|
<tb-attribute-table [defaultAttributeScope]="attributeScopes.SERVER_SCOPE" |
|
|
|
[active]="attributesTab.isActive" |
|
|
|
[entityId]="entity.id" |
|
|
|
[entityName]="entity.name"> |
|
|
|
</tb-attribute-table> |
|
|
|
</mat-tab> |
|
|
|
<mat-tab label="{{ 'attribute.latest-telemetry' | translate }}" #telemetryTab="matTab"> |
|
|
|
<tb-attribute-table [defaultAttributeScope]="latestTelemetryTypes.LATEST_TELEMETRY" |
|
|
|
disableAttributeScopeSelection |
|
|
|
[active]="telemetryTab.isActive" |
|
|
|
[entityId]="entity.id" |
|
|
|
[entityName]="entity.name"> |
|
|
|
</tb-attribute-table> |
|
|
|
</mat-tab> |
|
|
|
<mat-tab label="{{ 'tenant.events' | translate }}" #eventsTab="matTab"> |
|
|
|
<tb-event-table [defaultEventType]="eventTypes.ERROR" [active]="eventsTab.isActive" [tenantId]="nullUid" |
|
|
|
[entityId]="entity.id"></tb-event-table> |
|
|
|
</mat-tab> |
|
|
|
<mat-tab label="{{ 'relation.relations' | translate }}" #relationsTab="matTab"> |
|
|
|
<tb-relation-table [active]="relationsTab.isActive" [entityId]="entity.id"></tb-relation-table> |
|
|
|
</mat-tab> |
|
|
|
} |
|
|
|
|