1
0
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:
Dave Conway-Jones 2019-05-28 21:43:21 +01:00
parent 109204897f
commit 33e20c9969
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4

View File

@ -125,8 +125,8 @@ RED.utils = (function() {
e.stopPropagation();
RED.clipboard.copyText(key,copyPath,"clipboard.copyMessagePath");
})
}
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) {
e.preventDefault();
e.stopPropagation();