Commit d8736b89 authored by Phil Hughes's avatar Phil Hughes

Merge branch '3146-mirror-repo' into 'master'

Adds back missing code to enable the mirror repository checkbox

Closes #3146

See merge request !2670
parents 304793aa faa40419
......@@ -57,6 +57,12 @@ const bindEvents = () => {
});
$projectImportUrl.keyup(() => deriveProjectPathFromUrl($projectImportUrl, $projectPath));
$('.import_git').on('click', () => {
const $projectMirror = $('#project_mirror');
$projectMirror.attr('disabled', !$projectMirror.attr('disabled'));
});
};
document.addEventListener('DOMContentLoaded', bindEvents);
......
---
title: Enable mirror repository button
merge_request:
author:
type: fixed
......@@ -125,6 +125,10 @@ feature 'New project' do
expect(git_import_instructions).to be_visible
expect(git_import_instructions).to have_content 'Git repository URL'
end
it 'shows mirror repository checkbox enabled', :js do
expect(page).to have_unchecked_field('Mirror repository', disabled: false)
end
end
context 'from GitHub' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment