Skip to content
代码片段 群组 项目
提交 d8736b89 编辑于 作者: 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
No related branches found
No related tags found
无相关合并请求
......@@ -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 @@
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
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册