Browse Source

UI: Hide edit button if profile is not selected

pull/9387/head
Artem Dzhereleiko 3 years ago
parent
commit
bc096de3f7
  1. 2
      ui-ngx/src/app/modules/home/components/profile/tenant-profile-autocomplete.component.html

2
ui-ngx/src/app/modules/home/components/profile/tenant-profile-autocomplete.component.html

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

Loading…
Cancel
Save