From 475a9e78795cc9757a8d502e91b9f9afffe14ee0 Mon Sep 17 00:00:00 2001
From: Alex ORLUC <alex.orluc@maarch.org>
Date: Thu, 5 Nov 2020 15:45:12 +0100
Subject: [PATCH] FEAT #14947 TIME 0:10 fix autocomplete display

---
 src/frontend/app/profile.component.ts                         | 3 +--
 src/frontend/plugins/autocomplete/autocomplete.component.html | 2 +-
 src/frontend/plugins/autocomplete/autocomplete.component.ts   | 2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/frontend/app/profile.component.ts b/src/frontend/app/profile.component.ts
index 21dfe188087..57acd7cedf7 100755
--- a/src/frontend/app/profile.component.ts
+++ b/src/frontend/app/profile.component.ts
@@ -28,7 +28,6 @@ declare var tinymce: any;
 export class ProfileComponent implements OnInit {
 
     dialogRef: MatDialogRef<any>;
-    
 
     highlightMe: boolean = false;
     user: any = {
@@ -169,7 +168,7 @@ export class ProfileComponent implements OnInit {
         public dialog: MatDialog,
         private _formBuilder: FormBuilder,
         private authService: AuthService,
-        private headerService: HeaderService,
+        public headerService: HeaderService,
         public appService: AppService,
         private viewContainerRef: ViewContainerRef,
         private functions: FunctionsService
diff --git a/src/frontend/plugins/autocomplete/autocomplete.component.html b/src/frontend/plugins/autocomplete/autocomplete.component.html
index ef0855a45bf..ccc05532688 100644
--- a/src/frontend/plugins/autocomplete/autocomplete.component.html
+++ b/src/frontend/plugins/autocomplete/autocomplete.component.html
@@ -13,7 +13,7 @@
         </button>
         <mat-autocomplete #auto="matAutocomplete" (optionSelected)="selectOpt($event)" [displayWith]="displayFnWrapper()" >
             <ng-container *ngIf="options.length > 0 && !loading">
-                <mat-option *ngFor="let option of filteredOptions | async | sortBy: key"[value]="option" [disabled]="disableItems.indexOf(option['serialId']) > -1">
+                <mat-option *ngFor="let option of filteredOptions | async | sortBy: key" [value]="option" [disabled]="disableItems.indexOf(option['serialId']) > -1">
                     <mat-icon *ngIf="type[option['type']]" class="autcompleteIcon fas {{type[option['type']]}}"
                         color="primary">
                     </mat-icon>&nbsp;<span
diff --git a/src/frontend/plugins/autocomplete/autocomplete.component.ts b/src/frontend/plugins/autocomplete/autocomplete.component.ts
index 065f2941392..06c1f931599 100644
--- a/src/frontend/plugins/autocomplete/autocomplete.component.ts
+++ b/src/frontend/plugins/autocomplete/autocomplete.component.ts
@@ -197,7 +197,7 @@ export class PluginAutocomplete implements OnInit {
 
     selectOpt(ev: any) {
         if (this.singleMode) {
-            this.myControl.setValue(ev.option.value[this.key]);
+           // this.myControl.setValue(ev.option.value[this.key]);
         } else if (this.controlAutocomplete !== undefined) {
             this.setFormValue(ev.option.value);
         }
-- 
GitLab