2019-08-21 18:18:46 +03:00
|
|
|
<!--
|
|
|
|
|
|
2023-01-31 10:43:56 +02:00
|
|
|
Copyright © 2016-2023 The Thingsboard Authors
|
2019-08-21 18:18:46 +03:00
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
|
limitations under the License.
|
|
|
|
|
|
|
|
|
|
-->
|
2019-08-29 20:04:59 +03:00
|
|
|
<mat-tab *ngIf="entity"
|
|
|
|
|
label="{{ 'attribute.attributes' | translate }}" #attributesTab="matTab">
|
2020-02-13 18:38:11 +02:00
|
|
|
<tb-attribute-table [defaultAttributeScope]="attributeScopes.CLIENT_SCOPE"
|
|
|
|
|
[active]="attributesTab.isActive"
|
2019-08-29 20:04:59 +03:00
|
|
|
[entityId]="entity.id"
|
2020-02-13 18:38:11 +02:00
|
|
|
[entityName]="entity.name">
|
2019-08-29 20:04:59 +03:00
|
|
|
</tb-attribute-table>
|
|
|
|
|
</mat-tab>
|
|
|
|
|
<mat-tab *ngIf="entity"
|
|
|
|
|
label="{{ 'attribute.latest-telemetry' | translate }}" #telemetryTab="matTab">
|
2020-02-13 18:38:11 +02:00
|
|
|
<tb-attribute-table [defaultAttributeScope]="latestTelemetryTypes.LATEST_TELEMETRY"
|
|
|
|
|
disableAttributeScopeSelection
|
|
|
|
|
[active]="telemetryTab.isActive"
|
2019-08-29 20:04:59 +03:00
|
|
|
[entityId]="entity.id"
|
2020-02-13 18:38:11 +02:00
|
|
|
[entityName]="entity.name">
|
2019-08-29 20:04:59 +03:00
|
|
|
</tb-attribute-table>
|
|
|
|
|
</mat-tab>
|
2019-08-29 12:08:49 +03:00
|
|
|
<mat-tab *ngIf="entity"
|
|
|
|
|
label="{{ 'alarm.alarms' | translate }}" #alarmsTab="matTab">
|
|
|
|
|
<tb-alarm-table [active]="alarmsTab.isActive" [entityId]="entity.id"></tb-alarm-table>
|
|
|
|
|
</mat-tab>
|
2019-08-22 18:44:48 +03:00
|
|
|
<mat-tab *ngIf="entity"
|
|
|
|
|
label="{{ 'device.events' | translate }}" #eventsTab="matTab">
|
2020-02-13 18:38:11 +02:00
|
|
|
<tb-event-table [defaultEventType]="eventTypes.ERROR" [active]="eventsTab.isActive" [tenantId]="entity.tenantId.id"
|
2019-08-22 18:44:48 +03:00
|
|
|
[entityId]="entity.id"></tb-event-table>
|
|
|
|
|
</mat-tab>
|
2019-08-23 15:06:42 +03:00
|
|
|
<mat-tab *ngIf="entity"
|
|
|
|
|
label="{{ 'relation.relations' | translate }}" #relationsTab="matTab">
|
|
|
|
|
<tb-relation-table [active]="relationsTab.isActive" [entityId]="entity.id"></tb-relation-table>
|
|
|
|
|
</mat-tab>
|
2019-08-22 13:34:15 +03:00
|
|
|
<mat-tab *ngIf="entity && authUser.authority === authorities.TENANT_ADMIN"
|
|
|
|
|
label="{{ 'audit-log.audit-logs' | translate }}" #auditLogsTab="matTab">
|
2020-02-13 18:38:11 +02:00
|
|
|
<tb-audit-log-table detailsMode="true" [active]="auditLogsTab.isActive" [auditLogMode]="auditLogModes.ENTITY" [entityId]="entity.id"></tb-audit-log-table>
|
2019-08-21 18:18:46 +03:00
|
|
|
</mat-tab>
|
2022-05-25 12:26:23 +03:00
|
|
|
<mat-tab *ngIf="entity && authUser.authority === authorities.TENANT_ADMIN"
|
|
|
|
|
label="{{ 'version-control.version-control' | translate }}" #versionControlTab="matTab">
|
|
|
|
|
<tb-version-control detailsMode="true" singleEntityMode="true"
|
2022-05-26 13:50:50 +03:00
|
|
|
(versionRestored)="entitiesTableConfig.updateData()"
|
2022-06-01 13:10:32 +03:00
|
|
|
[active]="versionControlTab.isActive" [entityId]="entity.id" [entityName]="entity.name" [externalEntityId]="entity.externalId || entity.id"></tb-version-control>
|
2022-05-25 12:26:23 +03:00
|
|
|
</mat-tab>
|