Browse Source
Merge pull request #8979 from ArtemDzhereleiko/AD/bug-fix/asset-device-profile-autocomplete
Fixed hide edit button if entity is not selected Asset/Device Profile
pull/8980/head
Igor Kulikov
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
ui-ngx/src/app/modules/home/components/profile/asset-profile-autocomplete.component.html
-
ui-ngx/src/app/modules/home/components/profile/device-profile-autocomplete.component.html
|
|
|
@ -35,7 +35,7 @@ |
|
|
|
(click)="clear()"> |
|
|
|
<mat-icon class="material-icons">close</mat-icon> |
|
|
|
</button> |
|
|
|
<button *ngIf="selectAssetProfileFormGroup.get('assetProfile').value && !disabled && editProfileEnabled" |
|
|
|
<button *ngIf="selectAssetProfileFormGroup.get('assetProfile').value?.id && !disabled && editProfileEnabled" |
|
|
|
type="button" |
|
|
|
matSuffix mat-icon-button aria-label="Edit" |
|
|
|
matTooltip="{{ 'asset-profile.edit' | translate }}" |
|
|
|
|
|
|
|
@ -35,7 +35,7 @@ |
|
|
|
(click)="clear()"> |
|
|
|
<mat-icon class="material-icons">close</mat-icon> |
|
|
|
</button> |
|
|
|
<button *ngIf="selectDeviceProfileFormGroup.get('deviceProfile').value && !disabled && editProfileEnabled" |
|
|
|
<button *ngIf="selectDeviceProfileFormGroup.get('deviceProfile').value?.id && !disabled && editProfileEnabled" |
|
|
|
type="button" |
|
|
|
matSuffix mat-icon-button aria-label="Edit" |
|
|
|
matTooltip="{{ 'device-profile.edit' | translate }}" |
|
|
|
|