mirror of
https://github.com/apache/nifi.git
synced 2025-02-27 22:19:08 +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}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
isColorable: function(selection) {
|
isColorable: function(selection) {
|
||||||
|
if (selection.empty()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// determine if the current selection is entirely processors or labels
|
// determine if the current selection is entirely processors or labels
|
||||||
var selectedProcessors = selection.filter(function(d) {
|
var selectedProcessors = selection.filter(function(d) {
|
||||||
return nf.CanvasUtils.isProcessor(d3.select(this));
|
return nf.CanvasUtils.isProcessor(d3.select(this));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user