Fix jobs spec

This commit is contained in:
Clement Ho 2018-04-24 15:16:07 -05:00
parent 08f1ce90fa
commit 7fe9102a74
3 changed files with 3 additions and 3 deletions

View File

@ -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();
});
}

View File

@ -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',
});
}

View File

@ -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|