Canadian-Geospatial-Platform/geoview

[BUG] Remove tool bug: layer remove tool gets inactive when switching layers' menus while deleting layer with error.

Closed this issue · 0 comments

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

If I have a layer that has a loading error (e.g. 5a316fdc-3237-4ace-831e-67b4ca26a248) and I launch the remove process by clicking on the trash bin while being under the "View" menu...

image

Once the layer removal process has started if I switch to the "Remove" menu it freezes the process and the remove option is completely disabled (it becomes greyed):
image

If I load layers afterwards of if they were already loaded, I can't remove any of them anymore. The tool is disable for the rest of the session fro all layers:
image

Expected Behavior

Remove process should continue and get completed while switching menus. Remove tool should not be affected and remain available.

Steps To Reproduce

No response

Anything else?

No response