Filtering

This commit is contained in:
Mo Bitar
2018-07-04 12:59:31 -05:00
parent b33cdea814
commit e7948a8a01

View File

@@ -227,7 +227,9 @@ angular.module('app')
this.noteFilter = {text : ''};
this.filterNotes = function(note) {
if((note.archived && !this.showArchived && !this.tag.archiveTag) || (note.pinned && this.hidePinned)) {
var isSmartTag = this.tag.isSmartTag();
if((!isSmartTag && note.archived && !this.showArchived && !this.tag.archiveTag) || (note.pinned && this.hidePinned)) {
note.visible = false;
return note.visible;
}