1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-04-15 05:28:54 +00:00

improve snippets.list UX & add instant edit handler for snippet with empty tag-list

This commit is contained in:
Rokt33r
2015-06-11 04:10:01 +09:00
parent 9762da28a4
commit c81bddad2a
6 changed files with 61 additions and 6 deletions

View File

@@ -13,7 +13,7 @@
<ui-select ng-model="vm.mode" style="display: inline-block;" on-select="vm.log(vm.mode.name.toLowerCase())" theme="bootstrap">
<ui-select-match placeholder="Select Type">{{$select.selected}}</ui-select-match>
<ui-select-choices repeat="mode in vm.aceModes | filter: $select.search">
<div ng-bind-html="mode | highlight: $select.search"></div>
<div ng-bind="::mode"></div>
</ui-select-choices>
</ui-select>
</div>

View File

@@ -26,7 +26,7 @@
<a ui-sref="auth.signin" class="btn btn-default"><i class="fa fa-signin"></i> Sign In</a>
</li>
<li ng-repeat="snippet in vm.filtered" ui-sref="snippets.detail({id:snippet.id})" ng-class="{active:vm.snippetId===snippet.id}">
<li snippet-item="snippet" ng-repeat="snippet in vm.filtered" ui-sref="snippets.detail({id:snippet.id})" ng-class="{active:vm.snippetId===snippet.id}">
<div class="media">
<div class="media-left">
<img width="25" height="25" class="img-circle" src="http://www.gravatar.com/avatar/ea0b6ad1c11700120d1af08810caa19d" alt="" />