Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: fill in ssh key title on setting of repo #950

Merged
merged 4 commits into from
Feb 16, 2017

Conversation

appleboy
Copy link
Member

related PR: #863

@lunny
Copy link
Member

lunny commented Feb 15, 2017

LGTM

@tboerger tboerger added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Feb 15, 2017
@lunny lunny added this to the 1.1.0 milestone Feb 15, 2017
@lunny lunny added the type/bug label Feb 15, 2017
@plessbd
Copy link

plessbd commented Feb 15, 2017

Looking at the code from #683 it looks like it will overwrite a value if it is already set.

$("#ssh-key-title").val(arrays[2]);

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...

@tboerger
Copy link
Member

True, @appleboy please add a check if the title is empty before writing to it

@appleboy
Copy link
Member Author

@tboerger @plessbd

c5e88fc Done!

@@ -1493,7 +1493,8 @@ $(function () {
$("#ssh-key-content").on('change paste keyup',function(){
var value = $(this).val();
Copy link
Member

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(" ") ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bkcsoft Done

@bkcsoft
Copy link
Member

bkcsoft commented Feb 16, 2017

LGTM

@tboerger tboerger added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Feb 16, 2017
@bkcsoft bkcsoft merged commit 4c12e2a into go-gitea:master Feb 16, 2017
@appleboy appleboy deleted the ssh-key branch February 16, 2017 04:18
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants