[field format] Lock color version, allow deletion from any position

This commit is contained in:
Jonathan Budzenski 2015-09-24 09:31:11 -05:00
parent d58d14d7fd
commit fee4e0d99c
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@
"@spalger/ui-ace": "0.2.3",
"angular": "1.2.28",
"angular-bindonce": "0.3.1",
"angular-bootstrap-colorpicker": "^3.0.18",
"angular-bootstrap-colorpicker": "3.0.19",
"angular-elastic": "2.5.0",
"angular-route": "1.2.28",
"ansicolors": "0.3.2",

View file

@ -1,7 +1,7 @@
<div class="form-group">
<div ng-repeat="color in editor.formatParams.colors">
<div class="editor-color">
<button ng-if="$index > 0" aria-label="Remove Color" ng-click="removeColor($index)" tooltip="Remove Color" tooltip-append-to-body="true" type="button" class="btn btn-xs btn-danger editor-color-remove">
<button ng-if="editor.formatParams.colors.length > 1" aria-label="Remove Color" ng-click="removeColor($index)" tooltip="Remove Color" tooltip-append-to-body="true" type="button" class="btn btn-xs btn-danger editor-color-remove">
<i aria-hidden="true" class="fa fa-times"></i>
</button>
<div class="form-group">