From 4230b4f1f4e879a2489fd002af61df1d83a2c6cd Mon Sep 17 00:00:00 2001 From: Eliot Berriot <contact@eliotberriot.com> Date: Mon, 11 Mar 2019 10:46:46 +0100 Subject: [PATCH] Fix #751: saving moderation policy when clicking on "Cancel" --- changes/changelog.d/751.bugfix | 1 + front/src/components/manage/moderation/InstancePolicyForm.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changes/changelog.d/751.bugfix diff --git a/changes/changelog.d/751.bugfix b/changes/changelog.d/751.bugfix new file mode 100644 index 00000000..f107e2c7 --- /dev/null +++ b/changes/changelog.d/751.bugfix @@ -0,0 +1 @@ +Fixed saving moderation policy when clicking on "Cancel" (#751) diff --git a/front/src/components/manage/moderation/InstancePolicyForm.vue b/front/src/components/manage/moderation/InstancePolicyForm.vue index e90f9ad1..a31f162b 100644 --- a/front/src/components/manage/moderation/InstancePolicyForm.vue +++ b/front/src/components/manage/moderation/InstancePolicyForm.vue @@ -51,7 +51,7 @@ </div> </div> <div class="ui hidden divider"></div> - <button @click="$emit('cancel')" class="ui basic left floated button"> + <button @click.prevent="$emit('cancel')" class="ui basic left floated button"> <translate>Cancel</translate> </button> <button :class="['ui', 'right', 'floated', 'green', {'disabled loading': isLoading}, 'button']" :disabled="isLoading"> -- GitLab