mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-09 07:17:26 +08:00
[M] Rename: Bind -> Link
This commit is contained in:
@@ -8,7 +8,7 @@ export interface Card {
|
||||
luid: string
|
||||
registerTime: string
|
||||
accessTime: string
|
||||
bound: boolean
|
||||
linked: boolean
|
||||
ghost: boolean
|
||||
}
|
||||
|
||||
|
||||
@@ -95,5 +95,5 @@ export const CARD = {
|
||||
summary: (cardId: string): Promise<{card: Card, summary: CardSummary}> =>
|
||||
post('/api/v2/card/summary', { cardId }),
|
||||
link: (props: { cardId: string, migrate: string }) =>
|
||||
post('/api/v2/card/bind', props),
|
||||
post('/api/v2/card/link', props),
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
<script>
|
||||
import BindCard from "./Home/LinkCard.svelte";
|
||||
import LinkCard from "./Home/LinkCard.svelte";
|
||||
</script>
|
||||
|
||||
<main class="content">
|
||||
<h2>Welcome to AquaDX!</h2>
|
||||
|
||||
<BindCard/>
|
||||
<LinkCard/>
|
||||
</main>
|
||||
@@ -72,7 +72,7 @@
|
||||
const summary = card.summary
|
||||
|
||||
// Check if it's already linked
|
||||
if (card.card.bound) {
|
||||
if (card.card.linked) {
|
||||
setError("This card is already linked to another account", type)
|
||||
state = "ready"
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user