|
|
|
@ -18,8 +18,6 @@
|
|
|
|
foreground_color: data.settings?.qr_foreground || '#000',
|
|
|
|
foreground_color: data.settings?.qr_foreground || '#000',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
console.log(qr_data)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const submit = async () => {
|
|
|
|
const submit = async () => {
|
|
|
|
isLoading = true
|
|
|
|
isLoading = true
|
|
|
|
|
|
|
|
|
|
|
|
@ -35,7 +33,7 @@
|
|
|
|
const body = await response.json()
|
|
|
|
const body = await response.json()
|
|
|
|
|
|
|
|
|
|
|
|
if (body.success) {
|
|
|
|
if (body.success) {
|
|
|
|
toast.success('Account Details Updated')
|
|
|
|
toast.success('QR Details Updated')
|
|
|
|
await invalidateAll()
|
|
|
|
await invalidateAll()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (error) {
|
|
|
|
} catch (error) {
|
|
|
|
@ -84,4 +82,6 @@
|
|
|
|
<Loader2 class="animate-spin" />
|
|
|
|
<Loader2 class="animate-spin" />
|
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
Save</Button>
|
|
|
|
Save</Button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Button on:click={test} class="flex gap-2">Test</Button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|