|
|
|
@ -6,13 +6,16 @@ |
|
|
|
|
|
|
|
--> |
|
|
|
@if (entity && !isEdit) { |
|
|
|
<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> |
|
|
|
@if (resource.ASSET_PROFILE | hasGenericPermission: operation.READ_ATTRIBUTES) { |
|
|
|
<mat-tab label="{{ 'attribute.attributes' | translate }}" #attributesTab="matTab"> |
|
|
|
<tb-attribute-table [defaultAttributeScope]="attributeScopes.SERVER_SCOPE" |
|
|
|
[readonly]="!(resource.ASSET_PROFILE | hasGenericPermission: operation.WRITE_ATTRIBUTES)" |
|
|
|
[active]="attributesTab.isActive" |
|
|
|
[entityId]="entity.id" |
|
|
|
[entityName]="entity.name"> |
|
|
|
</tb-attribute-table> |
|
|
|
</mat-tab> |
|
|
|
} |
|
|
|
@if (authUser.authority === authorities.TENANT_ADMIN && (resource.ASSET_PROFILE | hasGenericPermission: operation.READ_CALCULATED_FIELD)) { |
|
|
|
<mat-tab label="{{ 'entity.type-calculated-fields' | translate }}" #calculatedFieldsTab="matTab"> |
|
|
|
<tb-calculated-fields-table |
|
|
|
|