Re-activated mail search

+ Small formatting in mail translation
This commit is contained in:
Sercan Yemen 2017-12-06 14:09:31 +03:00
parent 0e1c589399
commit db7a00440c
2 changed files with 5 additions and 3 deletions

View File

@ -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'
}
}
};

View File

@ -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()