Skip to content

Commit

Permalink
Fixed attribute release display name
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Jan 4, 2022
1 parent 51706a8 commit 88ee75f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const AttributeReleaseWidget = ({
enumDisabled && (enumDisabled).indexOf(option.value) !== -1;
return (
<tr key={index} className={`${bundle?.indexOf(option.value) > -1 ? 'text-light bg-info' : ''}`}>
<td className="align-middle"><Translate value={`label.attribute-${option.label}`}>{option.label}</Translate></td>
<td className="align-middle"><Translate value={`${option.label}`}>{option.label}</Translate></td>
<td className="">
<fieldset className="d-flex justify-content-end">
<div className="custom-control custom-checkbox bordered-custom-checkbox">
Expand Down
4 changes: 2 additions & 2 deletions ui/src/app/metadata/hooks/utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ export const assignValueToProperties = (models, properties, definition, schema)

const items = prop.type === 'array' && prop.items?.enum ? ({
...prop.items,
enum: prop.items.enum.map(item => ({
enum: prop.items.enum.map((item, index) => ({
key: item,
label: `label.attribute-${item}`,
label: `${prop?.items?.enumNames[index] || item}`,
differences: models
.map((model) => {
const value = model[prop.id];
Expand Down

0 comments on commit 88ee75f

Please sign in to comment.