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
parent
commit
877bf575f3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      ui-ngx/src/app/modules/home/components/alarm/alarm-assignee-panel.component.html

12
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>

Loading…
Cancel
Save