Browse Source

UI: Remove alarm tab from tenant and tenant profile

pull/14371/head
ArtemDzhereleiko 11 months ago
parent
commit
bb69f8b194
  1. 38
      ui-ngx/src/app/modules/home/pages/tenant-profile/tenant-profile-tabs.component.html
  2. 54
      ui-ngx/src/app/modules/home/pages/tenant/tenant-tabs.component.html

38
ui-ngx/src/app/modules/home/pages/tenant-profile/tenant-profile-tabs.component.html

@ -15,24 +15,20 @@
limitations under the License. limitations under the License.
--> -->
<mat-tab *ngIf="entity" @if (entity) {
label="{{ 'attribute.attributes' | translate }}" #attributesTab="matTab"> <mat-tab label="{{ 'attribute.attributes' | translate }}" #attributesTab="matTab">
<tb-attribute-table [defaultAttributeScope]="attributeScopes.SERVER_SCOPE" <tb-attribute-table [defaultAttributeScope]="attributeScopes.SERVER_SCOPE"
[active]="attributesTab.isActive" [active]="attributesTab.isActive"
[entityId]="entity.id" [entityId]="entity.id"
[entityName]="entity.name"> [entityName]="entity.name">
</tb-attribute-table> </tb-attribute-table>
</mat-tab> </mat-tab>
<mat-tab *ngIf="entity" <mat-tab label="{{ 'attribute.latest-telemetry' | translate }}" #telemetryTab="matTab">
label="{{ 'attribute.latest-telemetry' | translate }}" #telemetryTab="matTab"> <tb-attribute-table [defaultAttributeScope]="latestTelemetryTypes.LATEST_TELEMETRY"
<tb-attribute-table [defaultAttributeScope]="latestTelemetryTypes.LATEST_TELEMETRY" disableAttributeScopeSelection
disableAttributeScopeSelection [active]="telemetryTab.isActive"
[active]="telemetryTab.isActive" [entityId]="entity.id"
[entityId]="entity.id" [entityName]="entity.name">
[entityName]="entity.name"> </tb-attribute-table>
</tb-attribute-table> </mat-tab>
</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>

54
ui-ngx/src/app/modules/home/pages/tenant/tenant-tabs.component.html

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

Loading…
Cancel
Save