debian-mirror-gitlab/app/assets/javascripts/pages/groups/dependency_proxies/index.js
2021-01-29 00:20:46 +05:30

13 lines
346 B
JavaScript

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