-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix #1151 fixed some warnings #1226
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any remaining warnings?
@@ -90,7 +90,7 @@ var MapGrid = React.createClass({ | |||
renderMetadataModal() { | |||
if (this.props.metadataModal) { | |||
let MetadataModal = this.props.metadataModal; | |||
return (<MetadataModal ref="metadataModal" show={this.props.currentMap && this.props.currentMap.displayMetadataEdit} onHide={this.props.resetCurrentMap} | |||
return (<MetadataModal key="metadataModal" show={this.props.currentMap && this.props.currentMap.displayMetadataEdit} onHide={this.props.resetCurrentMap} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You cannot remove the ref, it's used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok i will keep ref and add key
@@ -17,15 +17,15 @@ const CreateNewMap = React.createClass({ | |||
mapType: React.PropTypes.string, | |||
onGoToMap: React.PropTypes.func, | |||
colProps: React.PropTypes.object, | |||
isLoggedIn: React.PropTypes.bool | |||
isLoggedIn: React.PropTypes.object |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bool is correct. You need to change the connect to set a bool value
}, | ||
contextTypes: { | ||
router: React.PropTypes.object | ||
}, | ||
getDefaultProps() { | ||
return { | ||
mapType: "leaflet", | ||
isLoggedIn: false, | ||
isLoggedIn: "", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
false is correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok i will change this
yes as far i have seen there are other two warnings
|
Ok, then fix also the two remaining warnings |
Is the "when we will click on settings icon in layer properties" still there? |
@@ -51,6 +51,6 @@ const CreateNewMap = React.createClass({ | |||
module.exports = { | |||
CreateNewMapPlugin: connect((state) => ({ | |||
mapType: (state.maps && state.maps.mapType) || (state.home && state.home.mapType), | |||
isLoggedIn: state && state.security && state.security.user | |||
isLoggedIn: state && state.security && state.security.user && state.security.user.enabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isLoggedIn: state && state.security && state.security.user && true || false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok i will change
@@ -385,7 +385,7 @@ | |||
"closeGlyph": "1-close", | |||
"submitConfig": { | |||
"buttonConfig": { | |||
"bsSize": "medium", | |||
"bsSize": "small", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you checked that the button doesn't change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes i checked its changed
No description provided.