Skip to content

Commit

Permalink
Merge pull request #9387 from ArtemDzhereleiko/AD/bug-fix/tenant-prof…
Browse files Browse the repository at this point in the history
…ile-autocompolete

Fixed tenant profile autocomplete hide edit button and add create new button
  • Loading branch information
ikulikov committed Oct 13, 2023
2 parents 0abaf05 + fa1aae3 commit 6c7c074
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,19 @@
(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 }}"
matTooltipPosition="above"
(click)="editTenantProfile($event)">
<mat-icon class="material-icons">edit</mat-icon>
</button>
<button mat-button color="primary" matSuffix
(click)="createTenantProfile($event, '')"
*ngIf="!selectTenantProfileFormGroup.get('tenantProfile').value && !disabled">
<span style="white-space: nowrap">{{ 'notification.create-new' | translate }}</span>
</button>
<mat-autocomplete
class="tb-autocomplete"
#tenantProfileAutocomplete="matAutocomplete"
Expand Down

0 comments on commit 6c7c074

Please sign in to comment.