Commit 2e96fcff authored by Patricio Cano's avatar Patricio Cano

Clone button should not be clickable when there is a disabled protocol

parent 29c50c53
...@@ -24,7 +24,6 @@ v 8.10.0 (unreleased) ...@@ -24,7 +24,6 @@ v 8.10.0 (unreleased)
- Allow importing from Github using Personal Access Tokens. (Eric K Idema) - Allow importing from Github using Personal Access Tokens. (Eric K Idema)
- API: Todos !3188 (Robert Schilling) - API: Todos !3188 (Robert Schilling)
- Add "Enabled Git access protocols" to Application Settings - Add "Enabled Git access protocols" to Application Settings
- Implement Subresource Integrity for CSS and JavaScript assets. This prevents malicious assets from loading in the case of a CDN compromise.
- Fix user creation with stronger minimum password requirements !4054 (nathan-pmt) - Fix user creation with stronger minimum password requirements !4054 (nathan-pmt)
- PipelinesFinder uses git cache data - PipelinesFinder uses git cache data
- Check for conflicts with existing Project's wiki path when creating a new project. - Check for conflicts with existing Project's wiki path when creating a new project.
......
...@@ -288,3 +288,14 @@ ...@@ -288,3 +288,14 @@
text-decoration: none; text-decoration: none;
} }
} }
.btn-static {
background-color: $background-color !important;
border: 1px solid lightgrey;
cursor: default;
&:active {
-moz-box-shadow: inset 0 0 0 white;
-webkit-box-shadow: inset 0 0 0 white;
box-shadow: inset 0 0 0 white;
}
}
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
.git-clone-holder.input-group .git-clone-holder.input-group
.input-group-btn .input-group-btn
-if allowed_protocols_present? -if allowed_protocols_present?
.clone-dropdown-btn.btn .clone-dropdown-btn.btn.btn-static
%span %span
= enabled_project_tooltip(project, enabled_protocol) = enabled_project_button(project, enabled_protocol)
- else - else
%a#clone-dropdown.clone-dropdown-btn.btn{href: '#', data: { toggle: 'dropdown' }} %a#clone-dropdown.clone-dropdown-btn.btn{href: '#', data: { toggle: 'dropdown' }}
%span %span
......
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