Commit 418f01a6 authored by Filipa Lacerda's avatar Filipa Lacerda

Merge branch '36882-disable-gitlab-project-import-button-if-source-disabled' into 'master'

Disable GitLab Project Import Button if source disabled

Closes #36882

See merge request !13789
parents 1b9c318c 80f657c0
...@@ -68,9 +68,10 @@ ...@@ -68,9 +68,10 @@
- if git_import_enabled? - if git_import_enabled?
%button.btn.js-toggle-button.import_git{ type: "button" } %button.btn.js-toggle-button.import_git{ type: "button" }
= icon('git', text: 'Repo by URL') = icon('git', text: 'Repo by URL')
.import_gitlab_project.has-tooltip{ data: { container: 'body' } } - if gitlab_project_import_enabled?
= link_to new_import_gitlab_project_path, class: 'btn btn_import_gitlab_project project-submit' do .import_gitlab_project.has-tooltip{ data: { container: 'body' } }
= icon('gitlab', text: 'GitLab export') = link_to new_import_gitlab_project_path, class: 'btn btn_import_gitlab_project project-submit' do
= icon('gitlab', text: 'GitLab export')
.row .row
.col-lg-12 .col-lg-12
......
---
title: Disable GitLab Project Import Button if source disabled
merge_request:
author:
type: fixed
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