mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Only add copypath popover if button exists.
This commit is contained in:
parent
109204897f
commit
33e20c9969
@ -125,8 +125,8 @@ RED.utils = (function() {
|
|||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
RED.clipboard.copyText(key,copyPath,"clipboard.copyMessagePath");
|
RED.clipboard.copyText(key,copyPath,"clipboard.copyMessagePath");
|
||||||
})
|
})
|
||||||
|
RED.popover.tooltip(copyPath,RED._("node-red:debug.sidebar.copyPath"));
|
||||||
}
|
}
|
||||||
RED.popover.tooltip(copyPath,RED._("node-red:debug.sidebar.copyPath"));
|
|
||||||
var copyPayload = $('<button class="red-ui-button red-ui-button-small"><i class="fa fa-clipboard"></i></button>').appendTo(copyTools).on("click", function(e) {
|
var copyPayload = $('<button class="red-ui-button red-ui-button-small"><i class="fa fa-clipboard"></i></button>').appendTo(copyTools).on("click", function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
Loading…
Reference in New Issue
Block a user