diff --git a/editor/js/ui/deploy.js b/editor/js/ui/deploy.js index df36a6058..2ca0ef767 100644 --- a/editor/js/ui/deploy.js +++ b/editor/js/ui/deploy.js @@ -82,8 +82,15 @@ RED.deploy = (function() { width: 550, height: "auto", buttons: [ + { + text: RED._("deploy.confirm.button.cancel"), + click: function() { + $( this ).dialog( "close" ); + } + }, { text: RED._("deploy.confirm.button.confirm"), + class: "primary", click: function() { var ignoreChecked = $( "#node-dialog-confirm-deploy-hide" ).prop("checked"); @@ -93,12 +100,6 @@ RED.deploy = (function() { save(true); $( this ).dialog( "close" ); } - }, - { - text: RED._("deploy.confirm.button.cancel"), - click: function() { - $( this ).dialog( "close" ); - } } ], create: function() { diff --git a/editor/js/ui/workspaces.js b/editor/js/ui/workspaces.js index d16eb8022..de349847d 100644 --- a/editor/js/ui/workspaces.js +++ b/editor/js/ui/workspaces.js @@ -173,16 +173,17 @@ RED.workspaces = (function() { title: RED._("workspace.confirmDelete"), buttons: [ { - text: RED._("common.label.ok"), + text: RED._("common.label.cancel"), click: function() { - var workspace = $(this).dialog('option','workspace'); - deleteWorkspace(workspace,true); $( this ).dialog( "close" ); } }, { - text: RED._("common.label.cancel"), + text: RED._("common.label.ok"), + class: "primary", click: function() { + var workspace = $(this).dialog('option','workspace'); + deleteWorkspace(workspace,true); $( this ).dialog( "close" ); } }