Fix error message reset

This commit is contained in:
Rodolphe Bréard 2023-09-26 14:12:52 +02:00
parent cf82f550b7
commit 9bad471bf3

View file

@ -150,9 +150,11 @@ const setErrorMessage = (messageId, messageType) => {
} }
return true; return true;
}; };
const resetErrorMessage = () => { const resetFloatingErrorMessage = () => {
errorMessageId.value = ''; errorMessageId.value = '';
};
const resetErrorMessage = () => {
resetFloatingErrorMessage();
separatorErrorMessageId.value = ''; separatorErrorMessageId.value = '';
localPartErrorMessageId.value = ''; localPartErrorMessageId.value = '';
addrKeyErrorMessageId.value = ''; addrKeyErrorMessageId.value = '';
@ -165,7 +167,7 @@ const resetErrorMessage = () => {
<div class="alert alert-danger alert-dismissible fade show" role="alert" v-if="errorMessageId"> <div class="alert alert-danger alert-dismissible fade show" role="alert" v-if="errorMessageId">
{{ $t(errorMessageId) }} {{ $t(errorMessageId) }}
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close" @click="resetErrorMessage"></button> <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close" @click="resetFloatingErrorMessage"></button>
</div> </div>
<div class="mb-3"> <div class="mb-3">