Dont include archived in tag note count
This commit is contained in:
@@ -143,7 +143,9 @@ angular.module('app.frontend')
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.noteCount = function(tag) {
|
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;
|
return validNotes.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
%li
|
%li
|
||||||
%label{"ng-click" => "ctrl.selectedMenuItem($event); ctrl.toggleArchiveNote()"}
|
%label{"ng-click" => "ctrl.selectedMenuItem($event); ctrl.toggleArchiveNote()"}
|
||||||
%i.icon.ion-ios-box
|
%i.icon.ion-ios-box
|
||||||
{{ctrl.note.archived ? "Unarcnive" : "Archive"}}
|
{{ctrl.note.archived ? "Unarchive" : "Archive"}}
|
||||||
%li
|
%li
|
||||||
%label{"ng-click" => "ctrl.selectedMenuItem($event); ctrl.deleteNote()"}
|
%label{"ng-click" => "ctrl.selectedMenuItem($event); ctrl.deleteNote()"}
|
||||||
%i.icon.ion-trash-b
|
%i.icon.ion-trash-b
|
||||||
|
|||||||
Reference in New Issue
Block a user