Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions src/components/InstancesList/InstancesList.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,20 +611,16 @@ class InstancesList extends React.Component {
<FormattedMessage id="stripes-smart-components.new" />
</Button>
</IfPermission>
<Pluggable
id="clickable-create-inventory-records"
onClose={this.toggleNewFastAddModal}
open={this.state.showNewFastAddModal} // control the open modal via state var
renderTrigger={() => (
<IfPermission perm="ui-plugin-create-inventory-records.create">
{
this.getActionItem({
id: 'new-fast-add-record',
icon: 'lightning',
messageId: 'ui-inventory.newFastAddRecord',
onClickHandler: buildOnClickHandler(this.toggleNewFastAddModal),
})
)}
type="create-inventory-records"
/>
}
</IfPermission>
<IfPermission perm="ui-quick-marc.quick-marc-editor.create">
<Button
buttonStyle="dropdownItem"
Expand Down Expand Up @@ -1118,6 +1114,13 @@ class InstancesList extends React.Component {
/>
</IfPermission>
</IfInterface>
<Pluggable
id="clickable-create-inventory-records"
onClose={this.toggleNewFastAddModal}
open={this.state.showNewFastAddModal}
renderTrigger={() => {}}
type="create-inventory-records"
/>
</HasCommand>
);
}
Expand Down