Browse Source

Removed obsolete "Assign to customer" field from Add Asset dialog (#16358)

pull/16366/head
Maksym Tsymbarov 2 months ago
committed by GitHub
parent
commit
79fb11a07d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 9
      ui-ngx/src/app/modules/home/pages/asset/asset.component.html
  2. 3
      ui-ngx/src/app/modules/home/pages/asset/asset.component.ts

9
ui-ngx/src/app/modules/home/pages/asset/asset.component.html

@ -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>

3
ui-ngx/src/app/modules/home/pages/asset/asset.component.ts

@ -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';

Loading…
Cancel
Save