Browse Source
Merge pull request #8336 from ArtemDzhereleiko/AD/bug-fix/alarm-assignment-no-users
Fix for no users matching assignment user
pull/8363/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
7 additions and
5 deletions
-
ui-ngx/src/app/modules/home/components/alarm/alarm-assignee-panel.component.html
|
|
|
@ -22,7 +22,7 @@ |
|
|
|
(focusin)="onFocus()" |
|
|
|
[matAutocomplete]="userAutocomplete"> |
|
|
|
<mat-icon matSuffix>search</mat-icon> |
|
|
|
<mat-autocomplete class="tb-assignee-autocomplete" |
|
|
|
<mat-autocomplete class="tb-assignee-autocomplete tb-autocomplete" |
|
|
|
#userAutocomplete="matAutocomplete" |
|
|
|
[displayWith]="displayUserFn" |
|
|
|
(optionSelected)="selected($event)"> |
|
|
|
@ -41,10 +41,12 @@ |
|
|
|
<span [innerHTML]="user.email | highlight:searchText"></span> |
|
|
|
</div> |
|
|
|
</mat-option> |
|
|
|
<mat-option *ngIf="!(filteredUsers | async)?.length" [value]="null"> |
|
|
|
<span style="white-space: normal"> |
|
|
|
{{ translate.get('user.no-users-matching', {entity: searchText}) | async }} |
|
|
|
</span> |
|
|
|
<mat-option *ngIf="!(filteredUsers | async)?.length" [value]="null" class="tb-not-found"> |
|
|
|
<div class="tb-not-found-content" (click)="$event.stopPropagation()"> |
|
|
|
<span style="white-space: normal"> |
|
|
|
{{ translate.get('user.no-users-matching', {entity: searchText}) | async }} |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</mat-option> |
|
|
|
</mat-autocomplete> |
|
|
|
</mat-form-field> |
|
|
|
|