From 79dd56d0174e70fb0aa8461bb5ef0eab1363b649 Mon Sep 17 00:00:00 2001 From: chiba Date: Mon, 4 Mar 2024 23:37:56 +0800 Subject: [PATCH] improve LinkCard.svelte when click button clean input --- AquaNet/src/pages/Home/LinkCard.svelte | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/AquaNet/src/pages/Home/LinkCard.svelte b/AquaNet/src/pages/Home/LinkCard.svelte index f2a70e2f..efe269c1 100644 --- a/AquaNet/src/pages/Home/LinkCard.svelte +++ b/AquaNet/src/pages/Home/LinkCard.svelte @@ -125,12 +125,12 @@ // If there are no longer conflicts, we can link the card if (!isConflict) { await doLink(conflictCardID, conflictToMigrate.join(",")) - + // Reset the conflict state linkConflictCancel() } } - + function linkConflictCancel() { state = "ready" conflictSummary = null @@ -249,7 +249,7 @@ on:input={inputACChange} class:error={inputAC && (!inputACRegex.test(inputAC) || errorAC)}> {#if inputAC.length > 0} - + {/if} {#if errorAC} @@ -276,7 +276,7 @@ on:input={inputSNChange} class:error={inputSN && (!inputSNRegex.test(inputSN) || errorSN)}> {#if inputSN.length > 0} - + {/if} {#if errorSN} @@ -373,4 +373,4 @@ .id opacity: 0.7 - \ No newline at end of file +