mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Apply i18n messages to diagnostics dialog
This commit is contained in:
parent
edcdc6c97c
commit
0fec9c7c55
@ -27,14 +27,14 @@ RED.diagnostics = (function () {
|
|||||||
readOnly: true,
|
readOnly: true,
|
||||||
jsonButtons: [
|
jsonButtons: [
|
||||||
{
|
{
|
||||||
text: 'Copy',
|
text: RED._('clipboard.export.copy'),
|
||||||
icon: 'fa fa-copy',
|
icon: 'fa fa-copy',
|
||||||
click: function () {
|
click: function () {
|
||||||
RED.clipboard.copyText(json, $(this), "Copied to clipboard")
|
RED.clipboard.copyText(json, $(this), RED._('clipboard.copyMessageValue'))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Download',
|
text: RED._('clipboard.download'),
|
||||||
icon: 'fa fa-download',
|
icon: 'fa fa-download',
|
||||||
click: function () {
|
click: function () {
|
||||||
var element = document.createElement('a');
|
var element = document.createElement('a');
|
||||||
|
@ -515,7 +515,7 @@
|
|||||||
.on("click", function (evt) {
|
.on("click", function (evt) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
if (button.click !== undefined) {
|
if (button.click !== undefined) {
|
||||||
button.click(evt);
|
button.click.call(element, evt);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (button.id) { element.attr("id", button.id); }
|
if (button.id) { element.attr("id", button.id); }
|
||||||
|
Loading…
Reference in New Issue
Block a user