mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
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:
parent
c514d988df
commit
dc0b9231cd
@ -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");
|
||||
|
@ -80,6 +80,8 @@
|
||||
});
|
||||
this.editor.focus();
|
||||
|
||||
RED.popover.tooltip($("#node-function-expand-js"), RED._("node-red:common.label.expand"));
|
||||
|
||||
$("#node-function-expand-js").on("click", function(e) {
|
||||
e.preventDefault();
|
||||
var value = that.editor.getValue();
|
||||
|
@ -110,6 +110,7 @@
|
||||
v: Date.now()
|
||||
});
|
||||
});
|
||||
RED.popover.tooltip($("#node-template-expand-editor"), RED._("node-red:common.label.expand"));
|
||||
$("#node-template-expand-editor").on("click", function(e) {
|
||||
e.preventDefault();
|
||||
var value = that.editor.getValue();
|
||||
|
@ -7,7 +7,8 @@
|
||||
"username": "Username",
|
||||
"password": "Password",
|
||||
"property": "Property",
|
||||
"selectNodes": "Select nodes..."
|
||||
"selectNodes": "Select nodes...",
|
||||
"expand": "Expand"
|
||||
},
|
||||
"status": {
|
||||
"connected": "connected",
|
||||
@ -137,7 +138,10 @@
|
||||
"debugNodes": "Debug nodes",
|
||||
"clearLog": "Clear log",
|
||||
"filterLog": "Filter log",
|
||||
"openWindow": "Open in new window"
|
||||
"openWindow": "Open in new window",
|
||||
"copyPath": "copy Path",
|
||||
"copyPayload": "copy Value",
|
||||
"pinPath": "pin open"
|
||||
},
|
||||
"messageMenu": {
|
||||
"collapseAll": "Collapse all paths",
|
||||
|
Loading…
Reference in New Issue
Block a user