This commit is contained in:
parent
2314132564
commit
a8340866d6
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@recogito/recogito-client-core",
|
"name": "@recogito/recogito-client-core",
|
||||||
"version": "0.3.3",
|
"version": "0.3.4",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -254,6 +254,8 @@ export default class TextAnnotator extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
const readOnly = this.props.config.readOnly || this.state.selectedAnnotation?.readOnly
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{ this.state.selectedAnnotation &&
|
{ this.state.selectedAnnotation &&
|
||||||
|
@ -261,6 +263,7 @@ export default class TextAnnotator extends Component {
|
||||||
wrapperEl={this.props.wrapperEl}
|
wrapperEl={this.props.wrapperEl}
|
||||||
annotation={this.state.selectedAnnotation}
|
annotation={this.state.selectedAnnotation}
|
||||||
selectedElement={this.state.selectedDOMElement}
|
selectedElement={this.state.selectedDOMElement}
|
||||||
|
readOnly={readOnly}
|
||||||
config={this.props.config}
|
config={this.props.config}
|
||||||
env={this.props.env}
|
env={this.props.env}
|
||||||
onAnnotationCreated={this.onCreateOrUpdateAnnotation('onAnnotationCreated')}
|
onAnnotationCreated={this.onCreateOrUpdateAnnotation('onAnnotationCreated')}
|
||||||
|
|
Loading…
Reference in New Issue