(js) Move to top when changing mailbox
This commit is contained in:
parent
5a408bf14b
commit
1c52093537
|
@ -207,8 +207,10 @@
|
||||||
|
|
||||||
mailbox = _find(stateAccount.$mailboxes);
|
mailbox = _find(stateAccount.$mailboxes);
|
||||||
|
|
||||||
if (mailbox)
|
if (mailbox) {
|
||||||
|
mailbox.$topIndex = 0;
|
||||||
return mailbox;
|
return mailbox;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
// Mailbox not found
|
// Mailbox not found
|
||||||
return $state.go('mail.account.inbox');
|
return $state.go('mail.account.inbox');
|
||||||
|
|
Loading…
Reference in a new issue