Commit a3bf7440 authored by Tim Zallmann's avatar Tim Zallmann

Merge branch 'frontend-validate-only-active-project-services' into 'master'

Only validate service form if active

See merge request gitlab-org/gitlab!47201
parents ef071518 79755f36
......@@ -35,12 +35,14 @@ export default class IntegrationSettingsForm {
}
saveIntegration() {
// Service was marked active so now we check;
// Save Service if not active and check the following if active;
// 1) If form contents are valid
// 2) If this service can be saved
// If both conditions are true, we override form submission
// and save the service using provided configuration.
if (this.$form.get(0).checkValidity()) {
const formValid = this.$form.get(0).checkValidity() || this.formActive === false;
if (formValid) {
this.$form.submit();
} else {
eventHub.$emit('validateForm');
......
---
title: Fix project integration form validation when integration is inactive
merge_request: 47201
author:
type: fixed
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