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

Make ssh key dialog accessible when opened from new proj dialog

This commit is contained in:
Nick O'Leary 2019-01-10 13:28:40 +00:00
parent 6a519a30a2
commit a786b37cb9
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -546,7 +546,7 @@ RED.projects = (function() {
subrow = $('<div style="text-align: center">').appendTo(sshwarningRow); subrow = $('<div style="text-align: center">').appendTo(sshwarningRow);
$('<button class="editor-button">'+RED._("projects.clone-project.ssh-key-add")+'</button>').appendTo(subrow).click(function(e) { $('<button class="editor-button">'+RED._("projects.clone-project.ssh-key-add")+'</button>').appendTo(subrow).click(function(e) {
e.preventDefault(); e.preventDefault();
$('#projects-dialog-cancel').click(); dialog.dialog( "close" );
RED.userSettings.show('gitconfig'); RED.userSettings.show('gitconfig');
setTimeout(function() { setTimeout(function() {
$("#user-settings-gitconfig-add-key").click(); $("#user-settings-gitconfig-add-key").click();