From 7fe9102a744779eff5031f1a5cff88f67961ff71 Mon Sep 17 00:00:00 2001 From: Clement Ho Date: Tue, 24 Apr 2018 15:16:07 -0500 Subject: [PATCH] Fix jobs spec --- app/assets/javascripts/build_variables.js | 2 +- app/assets/javascripts/jobs/components/header.vue | 2 +- app/views/projects/jobs/_sidebar.html.haml | 2 +- 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|