-
Notifications
You must be signed in to change notification settings - Fork 400
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
Conversation
saidaipparla
commented
Oct 18, 2016
@@ -46,6 +49,7 @@ var DefaultLayer = React.createClass({ | |||
propertiesChangeHandler: () => {}, | |||
onToggle: () => {}, | |||
onSettings: () => {}, | |||
activateRemoveLayer: true, |
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.
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", |
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.
This has to be localized
@@ -133,7 +133,7 @@ describe('test DefaultLayer module component', () => { | |||
const tool = ReactDOM.findDOMNode(TestUtils.scryRenderedDOMComponentsWithClass(comp, "glyphicon")[1]); |
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 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]); |
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.
Same here
@@ -239,10 +239,10 @@ describe('test DefaultLayer module component', () => { | |||
expect(tool).toExist(); |
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.
Same here