diff --git a/backend/src/main/resources/i18n/messages.properties b/backend/src/main/resources/i18n/messages.properties index 22433dda3..3eba5b3c2 100644 --- a/backend/src/main/resources/i18n/messages.properties +++ b/backend/src/main/resources/i18n/messages.properties @@ -73,6 +73,7 @@ action.disable=Disable action.add-new-role=Add new role action.roles=Roles action.source-role=Role +action.select-bundle=Select Bundle value.enabled=Enabled value.disabled=Disabled diff --git a/ui/src/app/form/component/widgets/AttributeReleaseWidget.js b/ui/src/app/form/component/widgets/AttributeReleaseWidget.js index b1e0553a0..a4f13eead 100644 --- a/ui/src/app/form/component/widgets/AttributeReleaseWidget.js +++ b/ui/src/app/form/component/widgets/AttributeReleaseWidget.js @@ -5,6 +5,7 @@ import Translate from "../../../i18n/components/translate"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faCheck, faTimes } from "@fortawesome/free-solid-svg-icons"; import Button from 'react-bootstrap/Button'; +import ListGroup from 'react-bootstrap/ListGroup'; const selectValue = (value, selected, all) => { const at = all.indexOf(value); @@ -94,24 +95,37 @@ const AttributeReleaseWidget = ({ selected: intersection(b.value, value).length === b.value.length } )), [bundles, value]); + + const [bundle, setBundle] = React.useState(); + + React.useEffect(() => console.log(bundle), [bundle]); + + const onMouseOver = (opt) => setBundle(opt); + const onMouseOut = () => setBundle(null); return (
{bundles && bundles.length > 0 && - + } @@ -127,16 +141,16 @@ const AttributeReleaseWidget = ({ const itemDisabled = enumDisabled && (enumDisabled).indexOf(option.value) !== -1; return ( - + -1 ? 'text-light bg-info' : ''}`}>
{option.label}
-
+
td { vertical-align: middle; } +} + +.bundle-item { + cursor: pointer; + &:hover, &.selected { + background: rgba($brand-info, 0.15); + } } \ No newline at end of file