fix: kick and ban would execute regardless of prompt due to calling the function in the Button callback prop instead of just passing it

This commit is contained in:
SauceyRed 2025-08-16 12:31:43 +02:00
commit 7cb19adfbe
Signed by: sauceyred
GPG key ID: 2BF92EB6D8A5CCA7

View file

@ -6,7 +6,7 @@
</div>
<div class="confirmation-modal-buttons">
<Button :variant="'normal'" :text="'Cancel'" @click="closeModal()" />
<Button :variant="'scary'" :text="'Confirm'" :callback="props.callback()" />
<Button :variant="'scary'" :text="'Confirm'" :callback="props.callback" />
</div>
</div>
</ModalBase>