From e7948a8a01d94f09a0a4f3f2e29e0b45126c91b8 Mon Sep 17 00:00:00 2001 From: Mo Bitar Date: Wed, 4 Jul 2018 12:59:31 -0500 Subject: [PATCH] Filtering --- app/assets/javascripts/app/controllers/notes.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/notes.js b/app/assets/javascripts/app/controllers/notes.js index 4759856cb..245fe87d9 100644 --- a/app/assets/javascripts/app/controllers/notes.js +++ b/app/assets/javascripts/app/controllers/notes.js @@ -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; }