-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fill in ssh key title on setting of repo #950
Conversation
LGTM |
Looking at the code from #683 it looks like it will overwrite a value if it is already set.
Should this be wrapped as if someone has already put in a value I don't think it should change what the user put in. Tell me if this should be a new issue and I can change it but this is fixing the code anyway so maybe this could be used for that... |
True, @appleboy please add a check if the title is empty before writing to it |
public/js/index.js
Outdated
@@ -1493,7 +1493,8 @@ $(function () { | |||
$("#ssh-key-content").on('change paste keyup',function(){ | |||
var value = $(this).val(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this necessary? Why not var arrays = $(this).val().split(" ")
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bkcsoft Done
LGTM |
related PR: #863