Dont include archived in tag note count

This commit is contained in:
Mo Bitar
2017-10-15 16:42:41 -05:00
parent 6fd57195cd
commit 650464d474
2 changed files with 4 additions and 2 deletions

View File

@@ -143,7 +143,9 @@ angular.module('app.frontend')
}
this.noteCount = function(tag) {
var validNotes = Note.filterDummyNotes(tag.notes);
var validNotes = Note.filterDummyNotes(tag.notes).filter(function(note){
return !note.archived;
});
return validNotes.length;
}

View File

@@ -24,7 +24,7 @@
%li
%label{"ng-click" => "ctrl.selectedMenuItem($event); ctrl.toggleArchiveNote()"}
%i.icon.ion-ios-box
{{ctrl.note.archived ? "Unarcnive" : "Archive"}}
{{ctrl.note.archived ? "Unarchive" : "Archive"}}
%li
%label{"ng-click" => "ctrl.selectedMenuItem($event); ctrl.deleteNote()"}
%i.icon.ion-trash-b