Commit 7fe9102a authored by Clement Ho's avatar Clement Ho

Fix jobs spec

parent 08f1ce90
...@@ -4,7 +4,7 @@ export default function handleRevealVariables() { ...@@ -4,7 +4,7 @@ export default function handleRevealVariables() {
$('.js-reveal-variables') $('.js-reveal-variables')
.off('click') .off('click')
.on('click', function click() { .on('click', function click() {
$('.js-build-variables').toggle('hide'); $('.js-build-variables').toggle();
$(this).hide(); $(this).hide();
}); });
} }
...@@ -56,7 +56,7 @@ export default { ...@@ -56,7 +56,7 @@ export default {
actions.push({ actions.push({
label: 'New issue', label: 'New issue',
path: this.job.new_issue_path, 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', type: 'link',
}); });
} }
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
- if @build.trigger_variables.any? - if @build.trigger_variables.any?
%p %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 %dl.js-build-variables.trigger-build-variables.hide
- @build.trigger_variables.each do |trigger_variable| - @build.trigger_variables.each do |trigger_variable|
......
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