Skip to content

Change UI of the import vector files functionality. Remove the widget…#4718

Merged
tdipisa merged 1 commit intogeosolutions-it:masterfrom
UMarkau:4678-import-vector-files-problem
Jan 16, 2020
Merged

Change UI of the import vector files functionality. Remove the widget…#4718
tdipisa merged 1 commit intogeosolutions-it:masterfrom
UMarkau:4678-import-vector-files-problem

Conversation

@UMarkau
Copy link
Copy Markdown
Contributor

@UMarkau UMarkau commented Jan 14, 2020

…s button from the TOC toolbar for imported files.

Add translations for needed phrases. Modify tests to fit new functionality.

Description

Change UI of the import vector files functionality. Remove the widgets button from the TOC toolbar for imported files.

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix

Issue

What is the current behavior?
#4678

What is the new behavior?
UI of the import vector files functionality has been changed. Removed the widgets button from the TOC toolbar for imported files.

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

…s button from the TOC toolbar for imported files.

Add translations for needed phrases. Modify tests to fit new functionality.
@UMarkau UMarkau added this to the 2020.01.01 milestone Jan 14, 2020
@UMarkau UMarkau self-assigned this Jan 14, 2020
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.003%) to 84.506% when pulling b4a51a6 on UMarkau:4678-import-vector-files-problem into 8485bb2 on geosolutions-it:master.

@tdipisa tdipisa requested a review from mbarto January 15, 2020 08:48
</OverlayTrigger>
: null}
{this.props.activateTool.activateWidgetTool && (status === 'LAYER') && this.props.selectedLayers.length === 1 && !this.props.settings.expanded && !this.props.layerMetadata.expanded && !this.props.wfsdownload.expanded ?
{this.props.activateTool.activateWidgetTool && (status === 'LAYER') && !this.props.selectedLayers.length && !this.props.settings.expanded && !this.props.layerMetadata.expanded && !this.props.wfsdownload.expanded ?
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.

Can you explain me this change, please?

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.

This change is related to the second paragraph of the connected task:
image

Our goal is to check if the length of the selectedLayers array is more than zero then we don't want to show the widgets button and we want to show the widgets button for other cases when the length of the array is zero.

Another possible solution is to remove the code responsible for displaying the widgets buttob at all (in web/client/components/TOC/Toolbar.jsx):

image

but I'm not sure if this does not break the logic of other parts of the application.

@tdipisa tdipisa merged commit 9db5b72 into geosolutions-it:master Jan 16, 2020
@tdipisa tdipisa added BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch bug Priority: High labels Jan 23, 2020
tdipisa pushed a commit that referenced this pull request Jan 24, 2020
…4783, #4718) (#4797)

* Change UI of the import vector files functionality. Remove the widgets button from the TOC toolbar for imported files.

Add translations for needed phrases. Modify tests to fit new functionality.

* Fix style for the wizard buttons.

* Modify logic of the mapimport reducer for the SET_LAYER case to remove useless success alert.

* Add test to cover new behavior.
@tdipisa tdipisa removed the BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch label Jan 24, 2020
mahmoudadel54 added a commit to mahmoudadel54/MapStore2 that referenced this pull request Jul 15, 2025
… rules support

- add jsdocs for RulesManager page for multi-instances support for stand-alone geofence
mahmoudadel54 added a commit that referenced this pull request Jul 17, 2025
…r support for stand-alone geofence (#11321)

* #4718: MapStore development for multi-cluster GeoFence rules support
- add jsdocs for RulesManager page for multi-instances support for stand-alone geofence

* - update jsdocs for RulesManager
- add new section in mapstore migration guide

* Apply suggestion from @offtherailz

* Apply suggestion from @offtherailz

* Apply suggestion from @offtherailz

---------

Co-authored-by: Lorenzo Natali <lorenzo.natali@geosolutionsgroup.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants