Skip to content

Commit

Permalink
elastic#6537 add simple check to enable coloring in viz (data table),…
Browse files Browse the repository at this point in the history
… too
  • Loading branch information
marcelhallmann53 committed Oct 8, 2016
1 parent a4bf798 commit e67f6eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/public/stringify/types/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function ColorFormatProvider(Private) {
html(val, field) {

var color;
if (field.type === 'string') {
if (field.type === 'string' || field === 'string') {
color = _.findLast(this.param('colors'), (colorParam) => {
return new RegExp(colorParam.regex).test(val);
});
Expand All @@ -67,5 +67,6 @@ export default function ColorFormatProvider(Private) {
}
};


return _Color;
};

0 comments on commit e67f6eb

Please sign in to comment.