debian-mirror-gitlab/app/assets/javascripts/pages/groups/dependency_proxies/index.js

14 lines
346 B
JavaScript
Raw Normal View History

2021-01-29 00:20:46 +05:30
import $ from 'jquery';
import initDependencyProxy from '~/dependency_proxy';
initDependencyProxy();
const form = document.querySelector('form.edit_dependency_proxy_group_setting');
const toggleInput = $('input.js-project-feature-toggle-input');
if (form && toggleInput) {
toggleInput.on('trigger-change', () => {
form.submit();
});
}