Skip to content

Commit

Permalink
UIIN-2497 Show Instance record after creating with Fast add option
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanDenis committed Nov 6, 2023
1 parent 0ac2099 commit f03c1eb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Make Inventory search and browse query boxes expandable. Refs UIIN-2493.
* Added support for `containsAny` match option in Advanced search. Refs UIIN-2486.
* Inventory search/browse: Do not retain checkbox selections when toggling search segment. Refs UIIN-2477.
* Show Instance record after creating with Fast add option. Refs UIIN-2497.

## [10.0.2] IN PROGRESS

Expand Down
13 changes: 12 additions & 1 deletion src/components/InstancesList/InstancesList.js
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,18 @@ class InstancesList extends React.Component {
}
}

toggleNewFastAddModal = () => {
toggleNewFastAddModal = ({ instanceRecord }) => {
const {
history,
location,
} = this.props;

if (instanceRecord?.id) {
history.push({
pathname: `/inventory/view/${instanceRecord.id}`,
search: location.search,
});
}
this.setState((state) => {
return { showNewFastAddModal: !state.showNewFastAddModal };
});
Expand Down

0 comments on commit f03c1eb

Please sign in to comment.