Fix Monero withdraw form reset after successful withdrawal.
Use resetFields so validation state clears without re-triggering required rules on an empty address.
This commit is contained in:
@@ -263,8 +263,7 @@ const onWithdrawSubmit = async (): Promise<void> => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
withdrawForm.destinationAddress = '';
|
withdrawFormRef.value?.resetFields();
|
||||||
withdrawFormRef.value?.clearValidate();
|
|
||||||
|
|
||||||
await loadWalletStatus();
|
await loadWalletStatus();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -277,7 +276,7 @@ const onWithdrawSubmit = async (): Promise<void> => {
|
|||||||
const onRevealSeedClick = async (): Promise<void> => {
|
const onRevealSeedClick = async (): Promise<void> => {
|
||||||
try {
|
try {
|
||||||
await ElMessageBox.confirm(
|
await ElMessageBox.confirm(
|
||||||
'The recovery seed grants full control over this shop wallet. Store it offline. Never share it or enter it on untrusted sites.',
|
'The recovery seed grants full control over this shop wallet. Store it offline. Never share it with anyone.',
|
||||||
'Reveal recovery seed?',
|
'Reveal recovery seed?',
|
||||||
{
|
{
|
||||||
confirmButtonText: 'I understand',
|
confirmButtonText: 'I understand',
|
||||||
|
|||||||
Reference in New Issue
Block a user