diff --git a/changes/changelog.d/751.bugfix b/changes/changelog.d/751.bugfix new file mode 100644 index 0000000000000000000000000000000000000000..f107e2c78293721b2e7b26d18000a727a78339d2 --- /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 e90f9ad10d27a57538147f552000abdbe28ae794..a31f162b9d4d0291fd2da2a0a9b9aa0cc29a45a2 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">