﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
14328	Grey out unsuitable preset options based on the selected object	naoliv	naoliv	"If we try to apply a preset on a unsuitable object we see a warning message saying `The preset foo cannot be applied since the selection is unsuitable!`
For example, when trying to apply a preset that needs a way when a node is selected.

Instead displaying a warning message, couldn't we simply have the options greyed out when the object is unsuitable?

If the preset requires a node and we have a way selected, all the options that are not suitable for ways would be greyed out (so the user won't be able to select invalid presets nor see a warning message).

It's similar to what we already have with most of the `Tools` menu.
For example, if we don't have any object selected we can't click on `Simplify Way`.

JOSM:
{{{
URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2017-02-04 01:51:01 +0100 (Sat, 04 Feb 2017)
Build-Date:2017-02-04 02:33:55
Revision:11533
Relative:URL: ^/trunk

Identification: JOSM/1.5 (11533 en) Linux Debian GNU/Linux 9.0 (stretch)
Memory Usage: 292 MB / 3005 MB (98 MB allocated, but free)
Java version: 1.8.0_121-8u121-b13-2-b13, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1920x1080
Maximum Screen Size: 1920x1080
Java package: openjdk-8-jre:amd64-8u121-b13-2
Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-13
VM arguments: [-Dawt.useSystemAAFontSettings=on]
Program arguments: [--language=en]
Dataset consistency test: No problems found
}}}"	enhancement	closed	normal		Core		worksforme	menu GUI	Klumbumbus
