From db7a00440ca03e85131727d5e8494be0900b5f4c Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Wed, 6 Dec 2017 14:09:31 +0300 Subject: [PATCH] Re-activated mail search + Small formatting in mail translation --- src/app/main/content/apps/mail/i18n/en.ts | 2 +- src/app/main/content/apps/mail/mail.component.ts | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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()