Show tags in tag view if more than one, sort tags alphabetically in note cell, editor pane

This commit is contained in:
Mo Bitar
2018-02-06 10:13:32 -06:00
parent 09eff0db7e
commit cbd0198e5c
5 changed files with 29 additions and 21 deletions

View File

@@ -11,7 +11,8 @@
#note-tags-component-container{"ng-if" => "ctrl.tagsComponent"}
%component-view.component-view{ "component" => "ctrl.tagsComponent"}
%input.tags-input{"ng-if" => "!(ctrl.tagsComponent && ctrl.tagsComponent.active)", "type" => "text", "ng-keyup" => "$event.keyCode == 13 && $event.target.blur();",
"ng-model" => "ctrl.tagsString", "placeholder" => "#tags", "ng-blur" => "ctrl.updateTagsFromTagsString($event, ctrl.tagsString)"}
"ng-model" => "ctrl.tagsString", "placeholder" => "#tags", "ng-blur" => "ctrl.updateTagsFromTagsString($event, ctrl.tagsString)",
"spellcheck" => "false"}
.sn-component{"ng-if" => "ctrl.note"}
.app-bar.no-edges

View File

@@ -54,7 +54,7 @@
%i.icon.ion-ios-box
%strong.medium Archived
.tags-string{"ng-if" => "ctrl.tag.all && !ctrl.hideTags"}
.tags-string{"ng-if" => "ctrl.shouldShowTags(note)"}
.faded {{note.tagsString()}}
.name{"ng-if" => "note.title"}