Commit f45b680d authored by Jacob Schatz's avatar Jacob Schatz Committed by Eric Eastwood

Make less code with toggles.

Conflicts:
	app/assets/javascripts/repo/components/repo_edit_button.vue
parent 9d688af5
......@@ -23,15 +23,8 @@ export default {
watch: {
editMode() {
if (this.editMode) {
$('.project-refs-form').addClass('disabled');
$('.fa-long-arrow-right').show();
$('.project-refs-target-form').show();
} else {
$('.project-refs-form').removeClass('disabled');
$('.fa-long-arrow-right').hide();
$('.project-refs-target-form').hide();
}
$('.project-refs-form').toggleClass('disabled', this.editMode);
$('.js-tree-ref-target-holder').toggle(this.editMode);
},
},
};
......
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