A website inspired by Last.fm that will keep track of your listening statistics
lastfm music statistics
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

By default, hide the description in the field component when errors appear

oscar345 0ffecf23 6132eb3e

+4 -1
+3 -1
web/components/interaction/Field.svelte
··· 18 18 description?: Content | undefined; 19 19 children?: Snippet | undefined; 20 20 checked?: boolean; 21 + description_and_errors?: boolean; 21 22 }; 22 23 23 24 type Props = ··· 31 32 description: description, 32 33 as: as, 33 34 id = randomID, 35 + description_and_errors = false, 34 36 value = $bindable(), 35 37 checked = $bindable(), 36 38 ...props ··· 72 74 {/if} 73 75 </div> 74 76 75 - {#if description} 77 + {#if description && ((errors ?? []).length === 0 || description_and_errors)} 76 78 <div class="description"> 77 79 {#if typeof description === "string"} 78 80 <Description id={id + "-description"}>{description}</Description>
+1
web/views/authentication/Login.svelte
··· 49 49 label="Password" 50 50 bind:value={$form.password} 51 51 description="Enter your password" 52 + errors={$form.errors.password} 52 53 /> 53 54 <Field as="checkbox" label="Remember me" /> 54 55 <Button scheme="primary">submit</Button>