possibility to add media (picture or youtube-video) to the instructions

This commit is contained in:
Delucse
2020-09-30 15:41:24 +02:00
parent f7a0e7594d
commit 56820a04fc
10 changed files with 224 additions and 151 deletions
+4 -2
View File
@@ -28,7 +28,9 @@ class Textfield extends Component {
componentDidMount(){
if(this.props.error){
this.props.deleteError(this.props.index, this.props.property);
if(this.props.property !== 'media'){
this.props.deleteError(this.props.index, this.props.property);
}
}
}
@@ -41,7 +43,7 @@ class Textfield extends Component {
this.props.jsonString(value);
}
else {
this.props.changeContent(this.props.index, this.props.property, value);
this.props.changeContent(value, this.props.index, this.props.property, this.props.property2);
}
if(value.replace(/\s/g,'') === ''){
this.props.setError(this.props.index, this.props.property);