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
environments/review-docs-devel-1399dq/deployments/6607
Philipp Wolfer 2020-11-21 14:23:35 +01:00
rodzic e27b7ed588
commit 73b9cf8d71
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

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

Wyświetl plik

@ -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>