|
|
@ -57,7 +57,7 @@ export class ObjectActions extends React.Component { |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
render() { |
|
|
|
render() { |
|
|
|
const { object, showShareObjectModal } = this.props |
|
|
|
const { object, showShareObjectModal, shareObjectName } = this.props |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<Dropdown id={`obj-actions-${object.name}`}> |
|
|
|
<Dropdown id={`obj-actions-${object.name}`}> |
|
|
|
<Dropdown.Toggle noCaret className="fia-toggle" /> |
|
|
|
<Dropdown.Toggle noCaret className="fia-toggle" /> |
|
|
@ -77,7 +77,8 @@ export class ObjectActions extends React.Component { |
|
|
|
<i className="fa fa-trash" /> |
|
|
|
<i className="fa fa-trash" /> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</Dropdown.Menu> |
|
|
|
</Dropdown.Menu> |
|
|
|
{showShareObjectModal && <ShareObjectModal object={object} />} |
|
|
|
{(showShareObjectModal && shareObjectName === object.name) && |
|
|
|
|
|
|
|
<ShareObjectModal object={object} />} |
|
|
|
{this.state.showDeleteConfirmation && ( |
|
|
|
{this.state.showDeleteConfirmation && ( |
|
|
|
<DeleteObjectConfirmModal |
|
|
|
<DeleteObjectConfirmModal |
|
|
|
deleteObject={this.deleteObject.bind(this)} |
|
|
|
deleteObject={this.deleteObject.bind(this)} |
|
|
@ -92,7 +93,8 @@ export class ObjectActions extends React.Component { |
|
|
|
const mapStateToProps = (state, ownProps) => { |
|
|
|
const mapStateToProps = (state, ownProps) => { |
|
|
|
return { |
|
|
|
return { |
|
|
|
object: ownProps.object, |
|
|
|
object: ownProps.object, |
|
|
|
showShareObjectModal: state.objects.shareObject.show |
|
|
|
showShareObjectModal: state.objects.shareObject.show, |
|
|
|
|
|
|
|
shareObjectName: state.objects.shareObject.object |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|