Dont include archived in tag note count
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user