mirror of
https://github.com/moparisthebest/mail
synced 2024-11-23 01:12:19 -05:00
Merge branch 'master' of github.com:whiteout-io/mail-html5
This commit is contained in:
commit
7ebdf1bfab
@ -81,10 +81,10 @@ define(function(require) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mark an email as unread
|
* Mark an email as unread or read, respectively
|
||||||
*/
|
*/
|
||||||
$scope.markUnread = function(email) {
|
$scope.toggleUnread = function(email) {
|
||||||
email.unread = true;
|
email.unread = !email.unread;
|
||||||
$scope.synchronize();
|
$scope.synchronize();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<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 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 state.nav.currentFolder.messages | orderBy:'uid':true | filter:searchText">
|
||||||
<h3>{{email.from[0].name || email.from[0].address}}</h3>
|
<h3>{{email.from[0].name || email.from[0].address}}</h3>
|
||||||
<div class="head">
|
<div class="head">
|
||||||
<div class="flag" data-icon="{{(!email.unread && email.answered) ? '' : ''}}" ng-click="markUnread(email); $event.stopPropagation()"></div>
|
<div class="flag" data-icon="{{(!email.unread && email.answered) ? '' : ''}}" ng-click="toggleUnread(email); $event.stopPropagation()"></div>
|
||||||
<p class="subject">{{email.subject || 'No subject'}}</p>
|
<p class="subject">{{email.subject || 'No subject'}}</p>
|
||||||
<time>{{email.sentDate | date:'mediumDate'}}</time>
|
<time>{{email.sentDate | date:'mediumDate'}}</time>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user