diff --git a/src/app/main/content/apps/mail/i18n/en.ts b/src/app/main/content/apps/mail/i18n/en.ts index 1e3b4b34..10d73426 100644 --- a/src/app/main/content/apps/mail/i18n/en.ts +++ b/src/app/main/content/apps/mail/i18n/en.ts @@ -8,7 +8,7 @@ export const locale = { 'LABELS' : 'LABELS', 'NO_MESSAGES' : 'There are no messages!', 'SELECT_A_MESSAGE_TO_READ': 'Select a message to read', - 'SEARCH_PLACEHOLDER': 'Search for an e-mail or contact' + 'SEARCH_PLACEHOLDER' : 'Search for an e-mail or contact' } } }; diff --git a/src/app/main/content/apps/mail/mail.component.ts b/src/app/main/content/apps/mail/mail.component.ts index f8c04d9c..9d3ead99 100644 --- a/src/app/main/content/apps/mail/mail.component.ts +++ b/src/app/main/content/apps/mail/mail.component.ts @@ -4,6 +4,8 @@ import { Subscription } from 'rxjs/Subscription'; import { FormControl } from '@angular/forms'; import { Mail } from './mail.model'; import { FuseTranslationLoaderService } from '../../../../core/services/translation-loader.service'; +import 'rxjs/add/operator/debounceTime'; +import 'rxjs/add/operator/distinctUntilChanged'; import { locale as english } from './i18n/en'; import { locale as turkish } from './i18n/tr'; @@ -80,12 +82,12 @@ export class FuseMailComponent implements OnInit, OnDestroy } }); - /*this.searchInput.valueChanges + this.searchInput.valueChanges .debounceTime(300) .distinctUntilChanged() .subscribe(searchText => { this.mailService.onSearchTextChanged.next(searchText); - });*/ + }); } ngOnDestroy()