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