Filtering
This commit is contained in:
@@ -227,7 +227,9 @@ angular.module('app')
|
|||||||
this.noteFilter = {text : ''};
|
this.noteFilter = {text : ''};
|
||||||
|
|
||||||
this.filterNotes = function(note) {
|
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;
|
note.visible = false;
|
||||||
return note.visible;
|
return note.visible;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user