|
|
@ -1,6 +1,6 @@ |
|
|
|
import React, { Component, Fragment } from 'react'; |
|
|
|
import React, { Component, Fragment } from 'react'; |
|
|
|
import {Vector as VectorLayer} from 'ol/layer'; |
|
|
|
import { Vector as VectorLayer } from 'ol/layer'; |
|
|
|
import {Vector as VectorSource} from 'ol/source'; |
|
|
|
import { Vector as VectorSource } from 'ol/source'; |
|
|
|
import Feature from 'ol/Feature'; |
|
|
|
import Feature from 'ol/Feature'; |
|
|
|
import { Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon } from 'ol/geom'; |
|
|
|
import { Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon } from 'ol/geom'; |
|
|
|
import { Circle as CircleStyle, Fill, Icon as IconOl, Stroke, Style, Text } from 'ol/style'; |
|
|
|
import { Circle as CircleStyle, Fill, Icon as IconOl, Stroke, Style, Text } from 'ol/style'; |
|
|
@ -32,8 +32,8 @@ import axios from "axios" |
|
|
|
import moment from "moment" |
|
|
|
import moment from "moment" |
|
|
|
import { deleteFeature, getImagePopup, formatLength, formatArea, lightOrDark } from '../../const/GeoserverFunc.js'; |
|
|
|
import { deleteFeature, getImagePopup, formatLength, formatArea, lightOrDark } from '../../const/GeoserverFunc.js'; |
|
|
|
import { formatLabel, hideAttr, dateColumns, DATE_TIME_FORMAT } from '../../const/CustomFunc.js' |
|
|
|
import { formatLabel, hideAttr, dateColumns, DATE_TIME_FORMAT } from '../../const/CustomFunc.js' |
|
|
|
import {API_UPLOAD_IMAGE, BASE_IMAGE, BASE_SIMPRO } from '../../const/ApiConst.js' |
|
|
|
import { API_UPLOAD_IMAGE, BASE_IMAGE, BASE_SIMPRO } from '../../const/ApiConst.js' |
|
|
|
import routeDummy from '../../dummy_data/route2.json'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PopupContainer extends Component { |
|
|
|
class PopupContainer extends Component { |
|
|
|
|
|
|
|
|
|
|
@ -69,7 +69,7 @@ class PopupContainer extends Component { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
componentDidMount() { |
|
|
|
componentDidMount() { |
|
|
|
this.setState({isReady: true}); |
|
|
|
this.setState({ isReady: true }); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/*componentDidMount() { |
|
|
|
/*componentDidMount() { |
|
|
@ -91,18 +91,18 @@ class PopupContainer extends Component { |
|
|
|
|
|
|
|
|
|
|
|
matchLayerAttribute = (propKey) => { |
|
|
|
matchLayerAttribute = (propKey) => { |
|
|
|
const { layer_attribute } = this.props; |
|
|
|
const { layer_attribute } = this.props; |
|
|
|
for (let i=0; i < layer_attribute.length; i++) { |
|
|
|
for (let i = 0; i < layer_attribute.length; i++) { |
|
|
|
if (layer_attribute[i].attribute !== 'the_geom') { |
|
|
|
if (layer_attribute[i].attribute !== 'the_geom') { |
|
|
|
if (layer_attribute[i].attribute_label !== null && layer_attribute[i].attribute_label !== '' ) { |
|
|
|
if (layer_attribute[i].attribute_label !== null && layer_attribute[i].attribute_label !== '') { |
|
|
|
if (propKey == layer_attribute[i].attribute) { |
|
|
|
if (propKey == layer_attribute[i].attribute) { |
|
|
|
return layer_attribute[i].attribute_label; |
|
|
|
return layer_attribute[i].attribute_label; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
} |
|
|
|
if (propKey == layer_attribute[i].attribute) { |
|
|
|
else { |
|
|
|
return layer_attribute[i].attribute; |
|
|
|
if (propKey == layer_attribute[i].attribute) { |
|
|
|
} |
|
|
|
return layer_attribute[i].attribute; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -234,18 +234,18 @@ class PopupContainer extends Component { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/*<div className="image-slider" onClick={() => this.showImageFeature(selectedPopupData)}>*/} |
|
|
|
{/*<div className="image-slider" onClick={() => this.showImageFeature(selectedPopupData)}>*/} |
|
|
|
<div className="image-popup-container"> |
|
|
|
<div className="image-popup-container"> |
|
|
|
{ this.renderImageSlider(selectedPopupData) } |
|
|
|
{this.renderImageSlider(selectedPopupData)} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="popup-body custom-scroll"> |
|
|
|
<div className="popup-body custom-scroll"> |
|
|
|
<table className="table popup-table"> |
|
|
|
<table className="table popup-table"> |
|
|
|
<tbody> |
|
|
|
<tbody> |
|
|
|
{ this.renderOneRowFeature(popupProperties) } |
|
|
|
{this.renderOneRowFeature(popupProperties)} |
|
|
|
</tbody> |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="popup-footer"> |
|
|
|
<div className="popup-footer"> |
|
|
|
<div className="btn-group"> |
|
|
|
<div className="btn-group"> |
|
|
|
{ this.renderButtonFooter(selectedPopupData) } |
|
|
|
{this.renderButtonFooter(selectedPopupData)} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -261,7 +261,7 @@ class PopupContainer extends Component { |
|
|
|
|
|
|
|
|
|
|
|
for (let key in popupProperties) { |
|
|
|
for (let key in popupProperties) { |
|
|
|
|
|
|
|
|
|
|
|
if (typeof(popupProperties[key]) === 'object') { |
|
|
|
if (typeof (popupProperties[key]) === 'object') { |
|
|
|
for (let prop in popupProperties[key]) { |
|
|
|
for (let prop in popupProperties[key]) { |
|
|
|
modPopupProperties[prop] = popupProperties[key][prop]; |
|
|
|
modPopupProperties[prop] = popupProperties[key][prop]; |
|
|
|
} |
|
|
|
} |
|
|
@ -271,7 +271,7 @@ class PopupContainer extends Component { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for (let key in modPopupProperties) { |
|
|
|
for (let key in modPopupProperties) { |
|
|
|
if (typeof(modPopupProperties[key]) === 'object') { |
|
|
|
if (typeof (modPopupProperties[key]) === 'object') { |
|
|
|
delete modPopupProperties[key]; |
|
|
|
delete modPopupProperties[key]; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -310,7 +310,7 @@ class PopupContainer extends Component { |
|
|
|
|
|
|
|
|
|
|
|
renderButtonFooter = (selectedPopupData) => { |
|
|
|
renderButtonFooter = (selectedPopupData) => { |
|
|
|
let layer_name = selectedPopupData.id && selectedPopupData.id.substr(0, selectedPopupData.id.indexOf(".")); |
|
|
|
let layer_name = selectedPopupData.id && selectedPopupData.id.substr(0, selectedPopupData.id.indexOf(".")); |
|
|
|
return( |
|
|
|
return ( |
|
|
|
<Fragment> |
|
|
|
<Fragment> |
|
|
|
<Button color="success" size="sm" outline onClick={() => this.showImageFeature(selectedPopupData)} id="showImageFeature"> |
|
|
|
<Button color="success" size="sm" outline onClick={() => this.showImageFeature(selectedPopupData)} id="showImageFeature"> |
|
|
|
<Icon icon={imageOutline} width={15} height={15} /> |
|
|
|
<Icon icon={imageOutline} width={15} height={15} /> |
|
|
@ -336,13 +336,13 @@ class PopupContainer extends Component { |
|
|
|
<UncontrolledTooltip placement="bottom" target="editFeature"> |
|
|
|
<UncontrolledTooltip placement="bottom" target="editFeature"> |
|
|
|
Edit Attribute |
|
|
|
Edit Attribute |
|
|
|
</UncontrolledTooltip> |
|
|
|
</UncontrolledTooltip> |
|
|
|
{ this.props.activeStateAddGeometry ?
|
|
|
|
{this.props.activeStateAddGeometry ? |
|
|
|
(<Button disabled color="success" size="sm" outline id="editGeometry"> |
|
|
|
(<Button disabled color="success" size="sm" outline id="editGeometry"> |
|
|
|
<Icon icon={pencilIcon} width={15} height={15} /> |
|
|
|
<Icon icon={pencilIcon} width={15} height={15} /> |
|
|
|
</Button>) : |
|
|
|
</Button>) : |
|
|
|
(<Button color="success" size="sm" outline onClick={() => this.editGeometry(selectedPopupData)} id="editGeometry"> |
|
|
|
(<Button color="success" size="sm" outline onClick={() => this.editGeometry(selectedPopupData)} id="editGeometry"> |
|
|
|
<Icon icon={pencilIcon} width={15} height={15} /> |
|
|
|
<Icon icon={pencilIcon} width={15} height={15} /> |
|
|
|
</Button>) |
|
|
|
</Button>) |
|
|
|
} |
|
|
|
} |
|
|
|
<UncontrolledTooltip placement="bottom" target="editGeometry"> |
|
|
|
<UncontrolledTooltip placement="bottom" target="editGeometry"> |
|
|
|
Edit Geometry |
|
|
|
Edit Geometry |
|
|
@ -354,21 +354,21 @@ class PopupContainer extends Component { |
|
|
|
Delete Feature |
|
|
|
Delete Feature |
|
|
|
</UncontrolledTooltip> |
|
|
|
</UncontrolledTooltip> |
|
|
|
|
|
|
|
|
|
|
|
{ layer_name && (layer_name === "m_sales" || layer_name === "m_employee" || layer_name === "m_waspang" || layer_name === "m_presensi") &&
|
|
|
|
{layer_name && (layer_name === "m_sales" || layer_name === "m_employee" || layer_name === "m_waspang" || layer_name === "m_presensi") && |
|
|
|
<> |
|
|
|
<> |
|
|
|
<Button color="success" size="sm" outline
|
|
|
|
<Button color="success" size="sm" outline |
|
|
|
onClick={() => { |
|
|
|
onClick={() => { |
|
|
|
let routeType = layer_name.split("_")[1]; |
|
|
|
let routeType = layer_name.split("_")[1]; |
|
|
|
this.props.toggleRoutingBarVisible() |
|
|
|
this.props.toggleRoutingBarVisible() |
|
|
|
this.props.setRouteType(routeType) |
|
|
|
this.props.setRouteType(routeType) |
|
|
|
}} |
|
|
|
}} |
|
|
|
id="showRoute"> |
|
|
|
id="showRoute"> |
|
|
|
<Icon icon={routeIcon} width={15} height={15} /> |
|
|
|
<Icon icon={routeIcon} width={15} height={15} /> |
|
|
|
</Button> |
|
|
|
</Button> |
|
|
|
<UncontrolledTooltip placement="bottom" target="showRoute"> |
|
|
|
<UncontrolledTooltip placement="bottom" target="showRoute"> |
|
|
|
Show Route |
|
|
|
Show Route |
|
|
|
</UncontrolledTooltip> |
|
|
|
</UncontrolledTooltip> |
|
|
|
</> } |
|
|
|
</>} |
|
|
|
</Fragment> |
|
|
|
</Fragment> |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
@ -466,13 +466,13 @@ class PopupContainer extends Component { |
|
|
|
<div className="popup-body custom-scroll"> |
|
|
|
<div className="popup-body custom-scroll"> |
|
|
|
<table className="table table-hover popup-table"> |
|
|
|
<table className="table table-hover popup-table"> |
|
|
|
<tbody> |
|
|
|
<tbody> |
|
|
|
{ popupDataTemp.map((item, index) => { |
|
|
|
{popupDataTemp.map((item, index) => { |
|
|
|
return (<tr key={index} className="popup-row-list-feature" |
|
|
|
return (<tr key={index} className="popup-row-list-feature" |
|
|
|
onClick={() => this.chooseOneFeature(item)}> |
|
|
|
onClick={() => this.chooseOneFeature(item)}> |
|
|
|
<td>{this.getFeaturesLabel(item)}</td> |
|
|
|
<td>{this.getFeaturesLabel(item)}</td> |
|
|
|
<td> <Badge style={{backgroundColor: this.getLayerColor(item)}} className={this.getLayerTitleTextColor(this.getLayerColor(item))}>{this.getLayerTitle(item)}</Badge> </td> |
|
|
|
<td> <Badge style={{ backgroundColor: this.getLayerColor(item) }} className={this.getLayerTitleTextColor(this.getLayerColor(item))}>{this.getLayerTitle(item)}</Badge> </td> |
|
|
|
</tr>) |
|
|
|
</tr>) |
|
|
|
}) } |
|
|
|
})} |
|
|
|
</tbody> |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -492,73 +492,73 @@ class PopupContainer extends Component { |
|
|
|
|
|
|
|
|
|
|
|
showImageFeature = (selectedPopupData) => { |
|
|
|
showImageFeature = (selectedPopupData) => { |
|
|
|
console.log('show images', selectedPopupData); |
|
|
|
console.log('show images', selectedPopupData); |
|
|
|
this.setState({imagePopupTitle: selectedPopupData.id}); |
|
|
|
this.setState({ imagePopupTitle: selectedPopupData.id }); |
|
|
|
this.toggleImagePopup(); |
|
|
|
this.toggleImagePopup(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
getFrontPhotoLicense = event => { |
|
|
|
getFrontPhotoLicense = event => { |
|
|
|
this.setState({ |
|
|
|
this.setState({ |
|
|
|
photo_feature: event.target.files[0], |
|
|
|
photo_feature: event.target.files[0], |
|
|
|
image_feature: URL.createObjectURL(event.target.files[0]), |
|
|
|
image_feature: URL.createObjectURL(event.target.files[0]), |
|
|
|
imagePreviewVisible: true |
|
|
|
imagePreviewVisible: true |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
toggleImagePopup = () => { |
|
|
|
toggleImagePopup = () => { |
|
|
|
this.setState({imagePopupVisible: !this.state.imagePopupVisible}); |
|
|
|
this.setState({ imagePopupVisible: !this.state.imagePopupVisible }); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
handleUploadImage = async () => { |
|
|
|
handleUploadImage = async () => { |
|
|
|
const {photo_feature, image_feature, imagePopupTitle} = this.state |
|
|
|
const { photo_feature, image_feature, imagePopupTitle } = this.state |
|
|
|
|
|
|
|
|
|
|
|
const category = imagePopupTitle.split("."); |
|
|
|
const category = imagePopupTitle.split("."); |
|
|
|
let type = category[0] |
|
|
|
let type = category[0] |
|
|
|
let id = category[1] |
|
|
|
let id = category[1] |
|
|
|
let imageType = '' |
|
|
|
let imageType = '' |
|
|
|
|
|
|
|
|
|
|
|
if(type==="m_office"){ |
|
|
|
if (type === "m_office") { |
|
|
|
imageType="office" |
|
|
|
imageType = "office" |
|
|
|
}else if(type==="m_sales"){ |
|
|
|
} else if (type === "m_sales") { |
|
|
|
imageType="m_sales" |
|
|
|
imageType = "m_sales" |
|
|
|
}else if(type==="m_employee"){ |
|
|
|
} else if (type === "m_employee") { |
|
|
|
imageType="employee" |
|
|
|
imageType = "employee" |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
imageType="customer" |
|
|
|
imageType = "customer" |
|
|
|
} |
|
|
|
} |
|
|
|
const formData = new FormData() |
|
|
|
const formData = new FormData() |
|
|
|
formData.append('ref_id', id) |
|
|
|
formData.append('ref_id', id) |
|
|
|
formData.append('files', photo_feature) |
|
|
|
formData.append('files', photo_feature) |
|
|
|
let url = `${BASE_SIMPRO}/image/${imageType}/upload`; |
|
|
|
let url = `${BASE_SIMPRO}/image/${imageType}/upload`; |
|
|
|
const result = await axios.post(url, formData) |
|
|
|
const result = await axios.post(url, formData) |
|
|
|
.then(res => res) |
|
|
|
.then(res => res) |
|
|
|
.catch((error) => error.response); |
|
|
|
.catch((error) => error.response); |
|
|
|
|
|
|
|
|
|
|
|
return result
|
|
|
|
return result |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
toggleImagePreview = async param => { |
|
|
|
toggleImagePreview = async param => { |
|
|
|
if(param == "upload"){ |
|
|
|
if (param == "upload") { |
|
|
|
const result = await this.handleUploadImage() |
|
|
|
const result = await this.handleUploadImage() |
|
|
|
console.log("response upload image",result); |
|
|
|
console.log("response upload image", result); |
|
|
|
if (result == undefined) { |
|
|
|
if (result == undefined) { |
|
|
|
alert('Upload Failed'); |
|
|
|
alert('Upload Failed'); |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
|
|
|
|
if (result.data.code == 200) { |
|
|
|
|
|
|
|
alert('Successfully uploaded image'); |
|
|
|
|
|
|
|
this.toggleImagePopup(); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
if (result.data.code == 200) { |
|
|
|
console.log('err', result); |
|
|
|
alert('Successfully uploaded image'); |
|
|
|
alert(result.data); |
|
|
|
this.toggleImagePopup(); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
|
|
|
|
console.log('err',result); |
|
|
|
|
|
|
|
alert(result.data); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
this.setState({imagePreviewVisible: !this.state.imagePreviewVisible}); |
|
|
|
this.setState({ imagePreviewVisible: !this.state.imagePreviewVisible }); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
showTable = (selectedPopupData) => { |
|
|
|
showTable = (selectedPopupData) => { |
|
|
@ -566,16 +566,16 @@ class PopupContainer extends Component { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
toggleShowTable = () => { |
|
|
|
toggleShowTable = () => { |
|
|
|
this.setState({mapTableVisible: !this.state.mapTableVisible}) |
|
|
|
this.setState({ mapTableVisible: !this.state.mapTableVisible }) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
editFeature = (selectedPopupData) => { |
|
|
|
editFeature = (selectedPopupData) => { |
|
|
|
console.log('edit feature', selectedPopupData); |
|
|
|
console.log('edit feature', selectedPopupData); |
|
|
|
this.setState({selectedPopupData: selectedPopupData}, () => this.toggleEditFeature()); |
|
|
|
this.setState({ selectedPopupData: selectedPopupData }, () => this.toggleEditFeature()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
toggleEditFeature = () => { |
|
|
|
toggleEditFeature = () => { |
|
|
|
this.setState({editFeatureVisible: !this.state.editFeatureVisible}) |
|
|
|
this.setState({ editFeatureVisible: !this.state.editFeatureVisible }) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/*goToFeature = (selectedPopupData) => { |
|
|
|
/*goToFeature = (selectedPopupData) => { |
|
|
@ -662,7 +662,7 @@ class PopupContainer extends Component { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
toggleEditGeometry = () => { |
|
|
|
toggleEditGeometry = () => { |
|
|
|
this.setState({editGeometryVisible: !this.state.editGeometryVisible}) |
|
|
|
this.setState({ editGeometryVisible: !this.state.editGeometryVisible }) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
deleteFeature = async (selectedPopupData) => { |
|
|
|
deleteFeature = async (selectedPopupData) => { |
|
|
@ -714,31 +714,31 @@ class PopupContainer extends Component { |
|
|
|
if (!isReady) { |
|
|
|
if (!isReady) { |
|
|
|
return <div>Loading...</div> |
|
|
|
return <div>Loading...</div> |
|
|
|
} |
|
|
|
} |
|
|
|
return( |
|
|
|
return ( |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<SweetAlert show={alert} success={successAlert} danger={dangerAlert} title={alertMessage} onConfirm={() => this.setState({alert: false, successAler: false, dangerAlert: false})}> |
|
|
|
<SweetAlert show={alert} success={successAlert} danger={dangerAlert} title={alertMessage} onConfirm={() => this.setState({ alert: false, successAler: false, dangerAlert: false })}> |
|
|
|
{alertMessage} |
|
|
|
{alertMessage} |
|
|
|
</SweetAlert> |
|
|
|
</SweetAlert> |
|
|
|
|
|
|
|
|
|
|
|
{this.fillPopupContent()} |
|
|
|
{this.fillPopupContent()} |
|
|
|
{ |
|
|
|
{ |
|
|
|
this.state.imagePopupVisible && |
|
|
|
this.state.imagePopupVisible && |
|
|
|
<ImagePopup |
|
|
|
<ImagePopup |
|
|
|
uploadImagePopup={this.getFrontPhotoLicense} |
|
|
|
uploadImagePopup={this.getFrontPhotoLicense} |
|
|
|
imagePopupVisible={this.state.imagePopupVisible} |
|
|
|
imagePopupVisible={this.state.imagePopupVisible} |
|
|
|
toggleImagePopup={() => this.toggleImagePopup()} |
|
|
|
toggleImagePopup={() => this.toggleImagePopup()} |
|
|
|
imagePopupTitle={this.state.imagePopupTitle ? this.state.imagePopupTitle : 'Feature Image'} |
|
|
|
imagePopupTitle={this.state.imagePopupTitle ? this.state.imagePopupTitle : 'Feature Image'} |
|
|
|
id={this.props.popupDataTemp[0].id} |
|
|
|
id={this.props.popupDataTemp[0].id} |
|
|
|
/> |
|
|
|
/> |
|
|
|
} |
|
|
|
} |
|
|
|
{ |
|
|
|
{ |
|
|
|
this.state.imagePreviewVisible && |
|
|
|
this.state.imagePreviewVisible && |
|
|
|
<ImagePopupPreview |
|
|
|
<ImagePopupPreview |
|
|
|
imageUrl={this.state.image_feature} |
|
|
|
imageUrl={this.state.image_feature} |
|
|
|
imagePopupVisible={this.state.imagePreviewVisible} |
|
|
|
imagePopupVisible={this.state.imagePreviewVisible} |
|
|
|
toggleImagePopup={this.toggleImagePreview} |
|
|
|
toggleImagePopup={this.toggleImagePreview} |
|
|
|
imagePopupTitle={"Upload Photo"} |
|
|
|
imagePopupTitle={"Upload Photo"} |
|
|
|
/> |
|
|
|
/> |
|
|
|
} |
|
|
|
} |
|
|
|
{ |
|
|
|
{ |
|
|
|
this.state.editFeatureVisible && |
|
|
|
this.state.editFeatureVisible && |
|
|
|