From f0d0858a25dc7b2d7c50769c83c5c6f6bf4ea622 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Thu, 8 Apr 2021 15:23:41 +0000 Subject: [PATCH] [Library | Trunk]: contact us change organization type to select git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60820 d315682c-612b-4755-9ff5-7f18f6832af3 --- contact-us/contact-us.component.html | 12 ++++-------- contact-us/contact-us.component.ts | 21 +-------------------- 2 files changed, 5 insertions(+), 28 deletions(-) diff --git a/contact-us/contact-us.component.html b/contact-us/contact-us.component.html index 9fdaa0a2..d63cfd4d 100644 --- a/contact-us/contact-us.component.html +++ b/contact-us/contact-us.component.html @@ -54,14 +54,10 @@
Organization Type *
- - - - {{option}} - - +
Subject *
diff --git a/contact-us/contact-us.component.ts b/contact-us/contact-us.component.ts index 084a3782..81b8b40a 100644 --- a/contact-us/contact-us.component.ts +++ b/contact-us/contact-us.component.ts @@ -10,7 +10,7 @@ import {map, startWith} from "rxjs/operators"; styleUrls: ['contact-us.component.css'] }) -export class ContactUsComponent implements OnInit { +export class ContactUsComponent { @Input() public contactForm: FormGroup; @Input() formTitle: string; @@ -23,25 +23,6 @@ export class ContactUsComponent implements OnInit { public right: boolean = true; @Input() public buttonClass: string; - public autoCompleteTypes: Observable; - - constructor() { - } - - ngOnInit() { - if(this.contactForm.get('organizationType')) { - this.autoCompleteTypes = this.contactForm.get('organizationType').valueChanges - .pipe( - startWith(''), - map(value => this._filter(value)) - ); - } - } - - private _filter(value: string): string[] { - const filterValue = value.toLowerCase(); - return this.organizationTypes.filter(option => option.toLowerCase().includes(filterValue)); - } public send() { this.sendEmitter.emit({