summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-04-21 16:34:00 +0200
committerJacob Schatz <jschatz1@gmail.com>2016-04-28 16:13:48 -0400
commit0426647069397d57d46c66de41c8fa4fad65e0bb (patch)
treed91b1c5f48e5481f1fd4ed6034925b4d00bd7ead /app/assets/stylesheets/framework
parented08bfdc26557b4d364dc18299bb21a8be195be6 (diff)
downloadgitlab-ce-0426647069397d57d46c66de41c8fa4fad65e0bb.tar.gz
Load the "New Branch" button asynchronously
This button depends on Issue#can_be_worked_on? which in turn depends on Issue#related_branches. By rendering this button asynchronously we can finally remove all usages of Issue#related_branches and Issue#referenced_merge_requests from the issues "show" page.
Diffstat (limited to 'app/assets/stylesheets/framework')
-rw-r--r--app/assets/stylesheets/framework/buttons.scss4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/stylesheets/framework/buttons.scss b/app/assets/stylesheets/framework/buttons.scss
index 18a74fe21a0..062da397b6b 100644
--- a/app/assets/stylesheets/framework/buttons.scss
+++ b/app/assets/stylesheets/framework/buttons.scss
@@ -139,6 +139,10 @@
pointer-events: auto !important;
}
+ &[disabled] {
+ pointer-events: none !important;
+ }
+
.caret {
margin-left: 5px;
}