Skip to content

fix #1151 fixed some warnings#1226

Merged
mbarto merged 3 commits into
geosolutions-it:masterfrom
saidaipparla:remove_warning
Nov 2, 2016
Merged

fix #1151 fixed some warnings#1226
mbarto merged 3 commits into
geosolutions-it:masterfrom
saidaipparla:remove_warning

Conversation

@saidaipparla

Copy link
Copy Markdown
Contributor

No description provided.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 79.765% when pulling 7a09320 on saidaipparla:remove_warning into 27a45b0 on geosolutions-it:master.

@mbarto mbarto left a comment

Copy link
Copy Markdown
Contributor

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?

Comment thread web/client/components/maps/MapGrid.jsx Outdated
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}

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor Author

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

Comment thread web/client/plugins/CreateNewMap.jsx Outdated
onGoToMap: React.PropTypes.func,
colProps: React.PropTypes.object,
isLoggedIn: React.PropTypes.bool
isLoggedIn: React.PropTypes.object

Copy link
Copy Markdown
Contributor

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

Comment thread web/client/plugins/CreateNewMap.jsx Outdated
return {
mapType: "leaflet",
isLoggedIn: false,
isLoggedIn: "",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

false is correct

Copy link
Copy Markdown
Contributor Author

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

@saidaipparla

Copy link
Copy Markdown
Contributor Author

yes as far i have seen there are other two warnings

  • when we will click on print link from menu
  • when we will click on settings icon in layer properties

@mbarto

mbarto commented Oct 28, 2016

Copy link
Copy Markdown
Contributor

Ok, then fix also the two remaining warnings

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.09%) to 79.672% when pulling 5dbb0a7 on saidaipparla:remove_warning into 27a45b0 on geosolutions-it:master.

@mbarto

mbarto commented Oct 28, 2016

Copy link
Copy Markdown
Contributor

Is the "when we will click on settings icon in layer properties" still there?

Comment thread web/client/plugins/CreateNewMap.jsx Outdated
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

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok i will change

"submitConfig": {
"buttonConfig": {
"bsSize": "medium",
"bsSize": "small",

Copy link
Copy Markdown
Contributor

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?

Copy link
Copy Markdown
Contributor Author

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

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.005%) to 79.77% when pulling 0effe65 on saidaipparla:remove_warning into 27a45b0 on geosolutions-it:master.

@mbarto mbarto merged commit add5fe5 into geosolutions-it:master Nov 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants