mirror of
https://github.com/moparisthebest/mail
synced 2024-11-23 09:22:23 -05:00
[WO-271] fix laggy ui for large mail-list by limiting display to 100
This commit is contained in:
parent
a8c9984524
commit
0cfc66e60d
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
<div class="list-wrapper" ng-iscroll="filteredMessages.length">
|
<div class="list-wrapper" ng-iscroll="filteredMessages.length">
|
||||||
<ul class="mail-list">
|
<ul class="mail-list">
|
||||||
<li ng-class="{'mail-list-active': email === state.mailList.selected, 'mail-list-attachment': email.attachments !== undefined && email.attachments.length > 0, 'mail-list-unread': email.unread, 'mail-list-replied': !email.unread && email.answered}" ng-click="select(email)" ng-repeat="email in (filteredMessages = (state.nav.currentFolder.messages | orderBy:'uid':true | filter:searchText))">
|
<li ng-class="{'mail-list-active': email === state.mailList.selected, 'mail-list-attachment': email.attachments !== undefined && email.attachments.length > 0, 'mail-list-unread': email.unread, 'mail-list-replied': !email.unread && email.answered}" ng-click="select(email)" ng-repeat="email in (filteredMessages = (state.nav.currentFolder.messages | filter:searchText | orderBy:'uid':true | limitTo:100))">
|
||||||
<h3>{{email.from[0].name || email.from[0].address}}</h3>
|
<h3>{{email.from[0].name || email.from[0].address}}</h3>
|
||||||
<div class="encrypted" data-icon="{{email.encrypted ? '' : ''}}"></div>
|
<div class="encrypted" data-icon="{{email.encrypted ? '' : ''}}"></div>
|
||||||
<div class="head">
|
<div class="head">
|
||||||
|
Loading…
Reference in New Issue
Block a user