Skip to content

Commit

Permalink
When editing a Pipeline, allow re-ordering of steps
Browse files Browse the repository at this point in the history
Fixes UIHAADM-108.

As a by-product, it's now also possible to re-order other lists, such
as the list of URLs associated with an XML-based harvestable.
  • Loading branch information
MikeTaylor committed Jan 18, 2024
1 parent 7d70ec0 commit b19ef9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Display `<Datepicker>` in full view by using `usePortal`. Fixes UIHAADM-98.
* Full display of a job now includes start time in header instead of current time. Fixes UIHAADM-103.
* When trying to delete an in-use step, this is rejected with a polite error message. Fixes last part of UIHAADM-9.
* When editing a Transformation Pipeline, allow re-ordering of steps. Fixes UIHAADM-108.

## [2.0.0](https://github.com/folio-org/ui-harvester-admin/tree/v2.0.0) (2023-10-13)

Expand Down
2 changes: 2 additions & 0 deletions src/components/ListField.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ const ListField = ({ name, label, renderEntry, component, emptyValue }) => {
}
</Col>
<Col xs={1}>
<IconButton icon="arrow-up" disabled={index === 0} onClick={() => fields.swap(index - 1, index)} />
<IconButton icon="arrow-down" disabled={index === fields.length - 1} onClick={() => fields.swap(index, index + 1)} />
<IconButton icon="trash" onClick={() => fields.remove(index)} />
</Col>
</Row>
Expand Down

0 comments on commit b19ef9f

Please sign in to comment.