Merge pull request #390 from orangemug/fix/switch-visibility-icons

Switch visibility icons
This commit is contained in:
Orange Mug 2018-09-22 15:51:10 +01:00 committed by GitHub
commit 0468db8cc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,7 +114,7 @@ class LayerListItem extends React.Component {
/>
<IconAction
wdKey={"layer-list-item:"+this.props.layerId+":toggle-visibility"}
action={this.props.visibility === 'visible' ? 'hide' : 'show'}
action={this.props.visibility === 'visible' ? 'show' : 'hide'}
onClick={e => this.props.onLayerVisibilityToggle(this.props.layerId)}
/>
</li>