diff --git a/src/js/controller/mail-list.js b/src/js/controller/mail-list.js index 4e5bffb..073f4b5 100644 --- a/src/js/controller/mail-list.js +++ b/src/js/controller/mail-list.js @@ -81,10 +81,10 @@ define(function(require) { }; /** - * Mark an email as unread + * Mark an email as unread or read, respectively */ - $scope.markUnread = function(email) { - email.unread = true; + $scope.toggleUnread = function(email) { + email.unread = !email.unread; $scope.synchronize(); }; diff --git a/src/tpl/mail-list.html b/src/tpl/mail-list.html index d5fc6a1..473aee1 100644 --- a/src/tpl/mail-list.html +++ b/src/tpl/mail-list.html @@ -13,7 +13,7 @@
  • {{email.from[0].name || email.from[0].address}}

    -
    +

    {{email.subject || 'No subject'}}