TF-390 Apply new ui for suggestion box for email address

This commit is contained in:
dab246
2022-03-24 13:07:48 +07:00
committed by Dat H. Pham
parent 5ca2f2a572
commit fdf1e45d66
14 changed files with 108 additions and 72 deletions
@@ -396,6 +396,15 @@ class ThreadController extends BaseController {
currentSelectMode.value = SelectMode.ACTIVE;
}
void setSelectAllEmailAction() {
if (isSearchActive()) {
emailListSearch.value = emailListSearch.map((email) => email.toSelectedEmail(selectMode: SelectMode.ACTIVE)).toList();
} else {
emailList.value = emailList.map((email) => email.toSelectedEmail(selectMode: SelectMode.ACTIVE)).toList();
}
currentSelectMode.value = SelectMode.ACTIVE;
}
List<PresentationEmail> get listEmailSelected {
if (isSearchActive()) {
return emailListSearch.where((email) => email.selectMode == SelectMode.ACTIVE).toList();