Added against field

This commit is contained in:
Zac Ioannidis
2020-10-28 19:02:22 +00:00
parent ac5565167e
commit e3276dfe8e

View File

@@ -80,11 +80,19 @@ class CardStack extends React.Component {
{ {
kind: "button", kind: "button",
title: "Type of Violation", title: "Type of Violation",
value: event.associations.map(association => ({ value: event.associations.slice(0, -1).map(association => ({
text: association, text: association,
color: getFilterIdxFromColorSet(association, this.props.coloringSet) >= 0 ? this.props.colors[getFilterIdxFromColorSet(association, this.props.coloringSet)] : null, color: getFilterIdxFromColorSet(association, this.props.coloringSet) >= 0 ? this.props.colors[getFilterIdxFromColorSet(association, this.props.coloringSet)] : null,
})), })),
}, },
{
kind: "button",
title: "Against",
value: event.associations.slice(-1).map(category => ({
text: category,
color: null,
})),
},
], ],
[ [
{ {