summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2018-04-24 15:16:07 -0500
committerClement Ho <ClemMakesApps@gmail.com>2018-04-24 15:16:07 -0500
commit7fe9102a744779eff5031f1a5cff88f67961ff71 (patch)
treed8fcbbaf4507bfaab9083d263834bac312e15a68
parent08f1ce90fa5a2806058c0ebec0baac9b158c0dec (diff)
downloadgitlab-ce-7fe9102a744779eff5031f1a5cff88f67961ff71.tar.gz
Fix jobs spec
-rw-r--r--app/assets/javascripts/build_variables.js2
-rw-r--r--app/assets/javascripts/jobs/components/header.vue2
-rw-r--r--app/views/projects/jobs/_sidebar.html.haml2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/build_variables.js b/app/assets/javascripts/build_variables.js
index bb86d655a15..d398e4a4c83 100644
--- a/app/assets/javascripts/build_variables.js
+++ b/app/assets/javascripts/build_variables.js
@@ -4,7 +4,7 @@ export default function handleRevealVariables() {
$('.js-reveal-variables')
.off('click')
.on('click', function click() {
- $('.js-build-variables').toggle('hide');
+ $('.js-build-variables').toggle();
$(this).hide();
});
}
diff --git a/app/assets/javascripts/jobs/components/header.vue b/app/assets/javascripts/jobs/components/header.vue
index 588a4b879dc..c1044f4cd42 100644
--- a/app/assets/javascripts/jobs/components/header.vue
+++ b/app/assets/javascripts/jobs/components/header.vue
@@ -56,7 +56,7 @@ export default {
actions.push({
label: 'New issue',
path: this.job.new_issue_path,
- cssClass: 'js-new-issue btn btn-new btn-inverted d-block d-lg-none d-xl-none',
+ cssClass: 'js-new-issue btn btn-new btn-inverted d-none d-md-block d-lg-block d-xl-block',
type: 'link',
});
}
diff --git a/app/views/projects/jobs/_sidebar.html.haml b/app/views/projects/jobs/_sidebar.html.haml
index 635d4e895b0..9c2b9b4bf34 100644
--- a/app/views/projects/jobs/_sidebar.html.haml
+++ b/app/views/projects/jobs/_sidebar.html.haml
@@ -42,7 +42,7 @@
- if @build.trigger_variables.any?
%p
- %button.btn.group.btn-group.d-flex.js-reveal-variables Reveal Variables
+ %button.btn.group.btn-group.js-reveal-variables Reveal Variables
%dl.js-build-variables.trigger-build-variables.hide
- @build.trigger_variables.each do |trigger_variable|