dropchop icon indicating copy to clipboard operation
dropchop copied to clipboard

Visually display when operations are not-applicable

Open alukach opened this issue 9 years ago • 3 comments

In the spirit of "data-first" GIS, menu items should visually display whether they are applicable to the current selection.

This would likely be done by firing a signal on any change to the L.Dropchop.app.layerlist.selection.list object. All operations would subscribe to this signal, and alter their dom element to have a lighter text color if not applicable. I think a user should still be able to click on the operation and attempt to use it, as the error message returned from failed validation provides feedback to the user on the reason why an operation is not applicable.

alukach avatar Jun 15 '15 03:06 alukach

I always assumed the operation wouldn't be clickable, but we would show a tooltip when the user hovered over a disabled button, but this is also interesting - and seems like a good way to get the user to register that their data do not match the operation.

mapsam avatar Jun 17 '15 05:06 mapsam

A tooltip showing why an operation is disabled would also work. I just want to make sure that there's some feedback available as to why it's disabled.

alukach avatar Jun 17 '15 06:06 alukach

Make operations available when data selection matches requirements for the operations:

dropchop-data-first

mapsam avatar Sep 12 '15 07:09 mapsam