Add warning if no sshkeys configured when cloning

This commit is contained in:
Nick O'Leary
2018-01-11 12:56:49 +00:00
parent 3306d30094
commit bb168d35a8
3 changed files with 22 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ RED.projects.userSettings = (function() {
var title = $('<h3></h3>').text("SSH Keys").appendTo(container);
var subtitle = $('<div style="color:#aaa;"></div>').appendTo(container).text("Allows you to create secure connections to remote git repositories.");
var addKeyButton = $('<button class="editor-button editor-button-small" style="float: right; margin-right: 10px;">add key</button>')
var addKeyButton = $('<button id="user-settings-gitconfig-add-key" class="editor-button editor-button-small" style="float: right; margin-right: 10px;">add key</button>')
.appendTo(subtitle)
.click(function(evt) {
addKeyButton.attr('disabled',true);
@@ -410,7 +410,6 @@ RED.projects.userSettings = (function() {
RED.settings.set('git', currentGitSettings);
}
});
}
return {