Hide textured model when necessary, processing node options fix

pull/380/head
Piero Toffanin 2018-01-23 10:07:09 -05:00
rodzic 71905322db
commit 7698293631
2 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -57,6 +57,10 @@ class ModelView extends React.Component {
return this.props.task.available_assets.indexOf('orthophoto.tif') !== -1;
}
hasTexturedModel(){
return this.props.task.available_assets.indexOf('textured_model.zip') !== -1;
}
objFilePath(){
let file = this.hasGeoreferencedAssets() ?
'odm_textured_model_geo.obj' :
@ -180,6 +184,7 @@ class ModelView extends React.Component {
// React render
render(){
const showSwitchModeButton = this.hasGeoreferencedAssets();
const showTextureModelButton = this.hasTexturedModel();
const hideWithTexturedModel = {display: this.state.showTexturedModel ? "none" : "block"};
return (<div className="model-view">
@ -207,7 +212,7 @@ class ModelView extends React.Component {
</span>
<div className="action-buttons">
<div className="textured-model-chkbox-container">
<div className={"textured-model-chkbox-container " + (!showTextureModelButton ? "hide" : "")}>
<label><input
type="checkbox"
onChange={this.toggleTexturedModel}

Wyświetl plik

@ -56,7 +56,7 @@ class ProcessingNodeOption extends React.Component {
}
handleSelectChange(e){
this.setState({value: this.state.value !== this.props.defaultValue ? e.target.value : ""});
this.setState({value: e.target.value !== this.props.defaultValue ? e.target.value : ""});
}
handleCheckboxChange(e){