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:
parent
b23fea9cb5
commit
fcdf252f03
@ -25,7 +25,7 @@ RED.diagnostics = (function () {
|
||||
value: json,
|
||||
requireValid: true,
|
||||
readOnly: true,
|
||||
jsonButtons: [
|
||||
toolbarButtons: [
|
||||
{
|
||||
text: RED._('clipboard.export.copy'),
|
||||
icon: 'fa fa-copy',
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user