Comparing version 0.9.0 to 0.9.1
@@ -15,6 +15,16 @@ /* global app */ | ||
$scope.autoShow = false; | ||
$scope.unreadItems = 0; | ||
var countUnread = function() { | ||
$scope.unreadItems = $scope.items.filter(function(email) { | ||
return !email.read; | ||
}).length; | ||
}; | ||
// Load all emails | ||
var loadData = function() { | ||
$scope.items = Email.query(); | ||
$scope.items.$promise.then(function() { | ||
countUnread(); | ||
}); | ||
}; | ||
@@ -37,2 +47,3 @@ | ||
$scope.items.push(newEmail); | ||
countUnread(); | ||
@@ -55,2 +66,3 @@ //update DOM at most 5 times per second | ||
email.read = true; | ||
countUnread(); | ||
}; | ||
@@ -57,0 +69,0 @@ |
{ | ||
"name": "maildev", | ||
"description": "SMTP Server and Web Interface for reading and testing emails during development", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "email", |
@@ -7,3 +7,3 @@ # MailDev | ||
![MailDev Screenshot](https://dl.dropboxusercontent.com/u/50627698/maildev-01-05-14.png) | ||
![MailDev Screenshot](https://dl.dropboxusercontent.com/u/50627698/maildev/screenshot-2015-03-29.png) | ||
@@ -15,3 +15,3 @@ ## Install & Run | ||
If you want to use MailDev with [Docker](https://www.docker.com/), you can use [this image on Docker Hub](https://registry.hub.docker.com/u/stratdat/maildev/). | ||
If you want to use MailDev with [Docker](https://www.docker.com/), you can use the ['djfarrelly/maildev' image on Docker Hub](https://registry.hub.docker.com/u/djfarrelly/maildev/). | ||
@@ -132,2 +132,4 @@ ## Usage | ||
0.9.1 - Display unread count in the title | ||
0.9.0 - Add ability to download `.eml` files | ||
@@ -134,0 +136,0 @@ |
Sorry, the diff of this file is not supported yet
170
1933536
48
21565