Fixing color when creating tags on admin area

stable
Alejandro Alonso 2016-09-21 13:18:08 +02:00 committed by David Barragán Merino
parent 3f686d4c52
commit c6b5228d54
2 changed files with 3 additions and 2 deletions

View File

@ -44,7 +44,8 @@ ColorSelectorDirective = ($timeout) ->
.mouseenter(cancel)
.mouseleave(close)
bindOnce scope, 'vm.initColor', (color) ->
scope.$watch 'vm.initColor', (color) ->
# We can't just bind once because sometimes the initial color is reset from the outside
ctrl.setColor(color)
return {

View File

@ -8,7 +8,7 @@ section
form.add-tag-container.new-value.hidden
tg-color-selector.color-column(
is-color-required="false"
ng-model="newValue"
init-color="newValue.color"
on-select-color="newValue.color = color"
)