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,
requireValid: true,
readOnly: true,
jsonButtons: [
toolbarButtons: [
{
text: RED._('clipboard.export.copy'),
icon: 'fa fa-copy',

View File

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