Browse Source
Removed obsolete "Assign to customer" field from Add Asset dialog (#16358)
pull/16366/head
Maksym Tsymbarov
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
0 additions and
12 deletions
-
ui-ngx/src/app/modules/home/pages/asset/asset.component.html
-
ui-ngx/src/app/modules/home/pages/asset/asset.component.ts
|
|
|
@ -69,15 +69,6 @@ |
|
|
|
[showDetailsPageLink]="resource.ASSET_PROFILE | hasGenericPermission : operation.READ" |
|
|
|
(assetProfileUpdated)="onAssetProfileUpdated()"> |
|
|
|
</tb-asset-profile-autocomplete> |
|
|
|
@if (isAdd) { |
|
|
|
<tb-entity-autocomplete |
|
|
|
useFullEntityId |
|
|
|
formControlName="customerId" |
|
|
|
labelText="asset.assign-to-customer" |
|
|
|
appearance="outline" |
|
|
|
[entityType]="entityType.CUSTOMER"> |
|
|
|
</tb-entity-autocomplete> |
|
|
|
} |
|
|
|
<div formGroupName="additionalInfo"> |
|
|
|
<mat-form-field class="mat-block" appearance="outline"> |
|
|
|
<mat-label translate>asset.description</mat-label> |
|
|
|
|
|
|
|
@ -5,7 +5,6 @@ import { ChangeDetectorRef, Component, Inject } from '@angular/core'; |
|
|
|
import { Store } from '@ngrx/store'; |
|
|
|
import { AppState } from '@core/core.state'; |
|
|
|
import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms'; |
|
|
|
import { EntityType } from '@shared/models/entity-type.models'; |
|
|
|
import { ActionNotificationShow } from '@core/notification/notification.actions'; |
|
|
|
import { TranslateService } from '@ngx-translate/core'; |
|
|
|
import { AssetInfo } from '@shared/models/asset.models'; |
|
|
|
@ -25,8 +24,6 @@ import { Authority } from '@shared/models/authority.enum'; |
|
|
|
}) |
|
|
|
export class AssetComponent extends GroupEntityComponent<AssetInfo> { |
|
|
|
|
|
|
|
entityType = EntityType; |
|
|
|
|
|
|
|
readonly isTenantAdmin: boolean; |
|
|
|
|
|
|
|
// assetScope: 'tenant' | 'customer' | 'customer_user';
|
|
|
|
|