UI: Hide edit button if profile is not selected

This commit is contained in:
Artem Dzhereleiko 2023-10-10 09:47:55 +03:00
parent 79dbf41b9f
commit bc096de3f7

View File

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