|
|
@@ -1,4 +1,4 @@ |
|
|
|
import { h, Component } from 'preact';
|
|
|
|
import { h, Component, createRef } from 'preact';
|
|
|
|
import WBBrowseDialogProjectList from 'wb-browse-dialog-project-list';
|
|
|
|
import WBBrowseDialogCollectionList from 'wb-browse-dialog-collection-list';
|
|
|
|
import WBBrowseDialogCollectionContent from 'wb-browse-dialog-collection-content';
|
|
|
@@ -44,6 +44,7 @@ class WBBrowseDialog extends Component { |
|
|
|
this.state.textSearch = '';
|
|
|
|
this.state.id = ('id' in this.props) ? this.props.id : uuid.v4();
|
|
|
|
this.state.accept = () => {};
|
|
|
|
this.modalRef = createRef();
|
|
|
|
}
|
|
|
|
|
|
|
|
navigateBack() {
|
|
|
@@ -144,6 +145,10 @@ class WBBrowseDialog extends Component { |
|
|
|
$('#' + this.state.id).modal();
|
|
|
|
}
|
|
|
|
|
|
|
|
componentWillUnmount() {
|
|
|
|
$(this.modalRef.current).modal('hide');
|
|
|
|
}
|
|
|
|
|
|
|
|
render({ app },
|
|
|
|
{ history, currentUrl, mode, uuid,
|
|
|
|
topPage, bottomPage, textSearch,
|
|
|
@@ -151,7 +156,7 @@ class WBBrowseDialog extends Component { |
|
|
|
selectMany, selectWhat }) {
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div class="modal" id={ id } tabindex="-1" role="dialog">
|
|
|
|
<div class="modal" id={ id } tabindex="-1" role="dialog" ref={ this.modalRef }>
|
|
|
|
<div class="modal-dialog modal-lg" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|