Commit 660e5c2e authored by Brandon Labuschagne's avatar Brandon Labuschagne

Merge branch '334732-propagate-time-changes-on-rule-update' into 'master'

Escalation rule updates do not trigger request parameters recalculation

See merge request gitlab-org/gitlab!65063
parents 236d14b6 89c8d226
<script>
import { GlModal, GlAlert } from '@gitlab/ui';
import { set, isEqual } from 'lodash';
import { isEqual } from 'lodash';
import { s__, __ } from '~/locale';
import {
updateStoreOnEscalationPolicyCreate,
......@@ -103,7 +103,7 @@ export default {
};
},
updateForm({ field, value }) {
set(this.form, field, value);
this.form = { ...this.form, [field]: value };
this.validateForm(field);
},
createEscalationPolicy() {
......
......@@ -110,6 +110,7 @@ describe('AddEditsEscalationPolicyModal', () => {
it('clears the form on modal cancel', async () => {
updateForm();
await wrapper.vm.$nextTick();
expect(findEscalationPolicyForm().props('form')).toMatchObject({
name: updatedName,
description: updatedDescription,
......@@ -180,6 +181,7 @@ describe('AddEditsEscalationPolicyModal', () => {
it('clears the form on modal cancel', async () => {
updateForm();
await wrapper.vm.$nextTick();
const getForm = () => findEscalationPolicyForm().props('form');
expect(getForm()).toMatchObject({
name: updatedName,
......
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