(js) Use user's settings when sorting messages

This commit is contained in:
Francis Lachapelle
2015-07-22 11:28:08 -04:00
parent a8ab01a5eb
commit a7afcbf4a0
3 changed files with 76 additions and 52 deletions
@@ -12,6 +12,7 @@
Mailbox.selectedFolder = stateMailbox;
vm.service = Mailbox;
vm.accounts = stateAccounts;
vm.account = stateAccount;
vm.selectedFolder = stateMailbox;
@@ -72,7 +73,7 @@
}
function sortedBy(field) {
return vm.selectedFolder.$query.sortingAttributes.sort == field;
return Mailbox.$query.sort == field;
}
function cancelSearch() {