Commit 79755f36 authored by Andy Soiron's avatar Andy Soiron Committed by Tim Zallmann

Only validate service form if active

parent 80d5fccc
...@@ -35,12 +35,14 @@ export default class IntegrationSettingsForm { ...@@ -35,12 +35,14 @@ export default class IntegrationSettingsForm {
} }
saveIntegration() { 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 // 1) If form contents are valid
// 2) If this service can be saved // 2) If this service can be saved
// If both conditions are true, we override form submission // If both conditions are true, we override form submission
// and save the service using provided configuration. // 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(); this.$form.submit();
} else { } else {
eventHub.$emit('validateForm'); 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