Fix delete library modal closing immediately

The delete library button was not only opening the confirmation modal but also submitted the edit library form, causing the modal to close again.

Fixes #1272
This commit is contained in:
Philipp Wolfer 2020-11-21 14:23:35 +01:00
parent e27b7ed588
commit 73b9cf8d71
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Fix delete library modal closing immediately (#1272)

View File

@ -26,7 +26,7 @@
<translate translate-context="Content/Library/Button.Label/Verb" v-if="library">Update library</translate>
<translate translate-context="Content/Library/Button.Label/Verb" v-else>Create library</translate>
</button>
<dangerous-button v-if="library" class="ui right floated basic danger button" @confirm="remove()">
<dangerous-button v-if="library" type="button" class="ui right floated basic danger button" @confirm="remove()">
<translate translate-context="*/*/*/Verb">Delete</translate>
<p slot="modal-header">
<translate translate-context="Popup/Library/Title">Delete this library?</translate>