mirror of
https://github.com/apache/nifi.git
synced 2025-02-18 16:14:45 +00:00
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…
x
Reference in New Issue
Block a user