UI: Hide edit button if entity not selected

This commit is contained in:
Artem Dzhereleiko 2023-07-24 12:16:19 +03:00
parent 1d3a9a25b3
commit ce6046844a
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@
(click)="clear()"> (click)="clear()">
<mat-icon class="material-icons">close</mat-icon> <mat-icon class="material-icons">close</mat-icon>
</button> </button>
<button *ngIf="selectAssetProfileFormGroup.get('assetProfile').value && !disabled && editProfileEnabled" <button *ngIf="selectAssetProfileFormGroup.get('assetProfile').value?.id && !disabled && editProfileEnabled"
type="button" type="button"
matSuffix mat-icon-button aria-label="Edit" matSuffix mat-icon-button aria-label="Edit"
matTooltip="{{ 'asset-profile.edit' | translate }}" matTooltip="{{ 'asset-profile.edit' | translate }}"

View File

@ -35,7 +35,7 @@
(click)="clear()"> (click)="clear()">
<mat-icon class="material-icons">close</mat-icon> <mat-icon class="material-icons">close</mat-icon>
</button> </button>
<button *ngIf="selectDeviceProfileFormGroup.get('deviceProfile').value && !disabled && editProfileEnabled" <button *ngIf="selectDeviceProfileFormGroup.get('deviceProfile').value?.id && !disabled && editProfileEnabled"
type="button" type="button"
matSuffix mat-icon-button aria-label="Edit" matSuffix mat-icon-button aria-label="Edit"
matTooltip="{{ 'device-profile.edit' | translate }}" matTooltip="{{ 'device-profile.edit' | translate }}"