1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

rename jsonButtons to toolbarButtons

This commit is contained in:
Steve-Mcl 2022-04-27 12:52:01 +01:00
parent b23fea9cb5
commit fcdf252f03
2 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@ RED.diagnostics = (function () {
value: json, value: json,
requireValid: true, requireValid: true,
readOnly: true, readOnly: true,
jsonButtons: [ toolbarButtons: [
{ {
text: RED._('clipboard.export.copy'), text: RED._('clipboard.export.copy'),
icon: 'fa fa-copy', icon: 'fa fa-copy',

View File

@ -509,9 +509,9 @@
open: function(tray) { open: function(tray) {
var trayBody = tray.find('.red-ui-tray-body'); var trayBody = tray.find('.red-ui-tray-body');
var dialogForm = RED.editor.buildEditForm(tray.find('.red-ui-tray-body'),'dialog-form',type,'editor'); var dialogForm = RED.editor.buildEditForm(tray.find('.red-ui-tray-body'),'dialog-form',type,'editor');
var jsonButtons = options.jsonButtons || []; var toolbarButtons = options.toolbarButtons || [];
if (jsonButtons.length) { if (toolbarButtons.length) {
jsonButtons.forEach(function (button) { toolbarButtons.forEach(function (button) {
var element = $('<button type="button" class="red-ui-button red-ui-button-small"> </button>') var element = $('<button type="button" class="red-ui-button red-ui-button-small"> </button>')
.insertBefore("#node-input-json-reformat") .insertBefore("#node-input-json-reformat")
.on("click", function (evt) { .on("click", function (evt) {