Browse Source
Merge pull request #9387 from ArtemDzhereleiko/AD/bug-fix/tenant-profile-autocompolete
Fixed tenant profile autocomplete hide edit button and add create new button
pull/9318/head
Igor Kulikov
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
1 deletions
-
ui-ngx/src/app/modules/home/components/profile/tenant-profile-autocomplete.component.html
|
|
@ -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="selectTenantProfileFormGroup.get('tenantProfile').value && !disabled" |
|
|
<button *ngIf="selectTenantProfileFormGroup.get('tenantProfile').value?.id && !disabled" |
|
|
type="button" |
|
|
type="button" |
|
|
matSuffix mat-icon-button aria-label="Edit" |
|
|
matSuffix mat-icon-button aria-label="Edit" |
|
|
matTooltip="{{ 'tenant-profile.edit' | translate }}" |
|
|
matTooltip="{{ 'tenant-profile.edit' | translate }}" |
|
|
@ -43,6 +43,11 @@ |
|
|
(click)="editTenantProfile($event)"> |
|
|
(click)="editTenantProfile($event)"> |
|
|
<mat-icon class="material-icons">edit</mat-icon> |
|
|
<mat-icon class="material-icons">edit</mat-icon> |
|
|
</button> |
|
|
</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 |
|
|
<mat-autocomplete |
|
|
class="tb-autocomplete" |
|
|
class="tb-autocomplete" |
|
|
#tenantProfileAutocomplete="matAutocomplete" |
|
|
#tenantProfileAutocomplete="matAutocomplete" |
|
|
|