mirror of https://github.com/apache/nifi.git
NIFI-325:
- Ensuring empty selection does enable the fill color dialog.
This commit is contained in:
parent
0047fa4502
commit
d76fe229bb
|
@ -481,6 +481,10 @@ nf.CanvasUtils = (function () {
|
|||
* @returns {boolean}
|
||||
*/
|
||||
isColorable: function(selection) {
|
||||
if (selection.empty()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// determine if the current selection is entirely processors or labels
|
||||
var selectedProcessors = selection.filter(function(d) {
|
||||
return nf.CanvasUtils.isProcessor(d3.select(this));
|
||||
|
|
Loading…
Reference in New Issue