Add popover tooltips to debug sidebar,function and template

path, value, pin buttons in debug
expand buttons in function and template.
This commit is contained in:
Dave Conway-Jones
2019-05-27 15:48:06 +01:00
parent c514d988df
commit dc0b9231cd
4 changed files with 12 additions and 2 deletions

View File

@@ -126,11 +126,13 @@ RED.utils = (function() {
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();
RED.clipboard.copyText(msg,copyPayload,"clipboard.copyMessageValue");
})
RED.popover.tooltip(copyPayload,RED._("node-red:debug.sidebar.copyPayload"));
if (strippedKey !== undefined && strippedKey !== '') {
var isPinned = pinnedPaths[sourceId].hasOwnProperty(strippedKey);
@@ -149,6 +151,7 @@ RED.utils = (function() {
}
}).toggleClass("selected",isPinned);
obj.toggleClass("red-ui-debug-msg-row-pinned",isPinned);
RED.popover.tooltip(pinPath,RED._("node-red:debug.sidebar.pinPath"));
}
if (extraTools) {
extraTools.addClass("red-ui-debug-msg-tools-other");