Skip to content
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 #1107 added button for deleting layers in simple way #1170

Merged
merged 2 commits into from
Oct 19, 2016

Conversation

saidaipparla
Copy link
Contributor

deletelayer

@@ -46,6 +49,7 @@ var DefaultLayer = React.createClass({
propertiesChangeHandler: () => {},
onToggle: () => {},
onSettings: () => {},
activateRemoveLayer: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

We should configure this as false, like the other tools

<ConfirmButton key="removelayer" className="clayer_removal_button"
text={(<Glyphicon glyph="1-close" />)}
style={{"float": "right", cursor: "pointer", backgroundColor: "transparent", marginRight: 3, padding: 0, outline: "none"}}
confirming={{text: "Sei sicuro",
Copy link
Contributor

Choose a reason for hiding this comment

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

This has to be localized

@@ -133,7 +133,7 @@ describe('test DefaultLayer module component', () => {
const tool = ReactDOM.findDOMNode(TestUtils.scryRenderedDOMComponentsWithClass(comp, "glyphicon")[1]);
Copy link
Contributor

Choose a reason for hiding this comment

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

You need to use a different index here to get the right tool, in this way you are simply skipping all the tests that were done before

@@ -158,11 +158,11 @@ describe('test DefaultLayer module component', () => {
const tool = ReactDOM.findDOMNode(TestUtils.scryRenderedDOMComponentsWithClass(comp, "glyphicon")[1]);
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

@@ -239,10 +239,10 @@ describe('test DefaultLayer module component', () => {
expect(tool).toExist();
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) to 80.573% when pulling e6b6890 on saidaipparla:remove_layers into 9e3ad2a on geosolutions-it:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.09%) to 80.714% when pulling 3416488 on saidaipparla:remove_layers into 9e3ad2a on geosolutions-it:master.

@mbarto mbarto merged commit 2868aab into geosolutions-it:master Oct 19, 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