diff options
author | korelstar <korelstar@users.noreply.github.com> | 2018-11-08 17:19:02 +0300 |
---|---|---|
committer | korelstar <korelstar@users.noreply.github.com> | 2018-11-08 23:50:51 +0300 |
commit | d8e5a54d5c46cd299ff8be79c1119a0d334a997d (patch) | |
tree | 27aa4f38662266cd878a7242734dff6dd936d91b /templates | |
parent | ca8515cc2c1bdf59c06e9d8837187f08a1dba4ea (diff) |
fix: notes list was not always updated on changes
Diffstat (limited to 'templates')
-rw-r--r-- | templates/main.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/main.php b/templates/main.php index b54ae858..20b63002 100644 --- a/templates/main.php +++ b/templates/main.php @@ -111,22 +111,22 @@ style('notes', [ <!-- notes list --> <li ng-repeat="note in filteredNotes = (notes | filter:categoryFilter | and:search | orderBy:filterOrder | groupNotes:filterCategory)" - ng-class="{ active: note.id == route.noteId, 'has-error': note.error, 'app-navigation-noclose': note.isCategory }" + ng-class="{ active: note.id == route.noteId, 'has-error': note.error, 'app-navigation-noclose': isCategory(note) }" class="note-item"> <a class="nav-icon-files svg separator-above" - ng-if="note.isCategory" - ng-click="setFilter(filterCategory + '/' + note.title)" - >… / {{ note.title | categoryTitle }}</a> + ng-if="isCategory(note)" + ng-click="setFilter(filterCategory + '/' + note)" + >… / {{ note | categoryTitle }}</a> <a href="#/notes/{{ note.id }}" title="{{ note.title }}" - ng-if="!note.isCategory" + ng-if="!isCategory(note)" > {{ note.title }} <span ng-if="note.unsaved">*</span> </a> - <div class="app-navigation-entry-utils" ng-class="{'hidden': note.error }" ng-if="!note.isCategory"> + <div class="app-navigation-entry-utils" ng-class="{'hidden': note.error }" ng-if="!isCategory(note)"> <ul> <li class="app-navigation-entry-utils-menu-button button-delete"> <button class="svg action icon-delete" |