[wip] Implement photos loading and make everything dynamic
- Handle what happens when we click on Load more photos (detect if can load next or if reached the end) - Show the current and total amount of photos (WIP as it apparently can't be filtered for aggregated) - See filtered photos from URL when coming directly - Disable button when all photos has been seen - Show message if location doesn't exist
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
export let text: string
|
||||
export let tag: string = 'a'
|
||||
export let url: string = undefined
|
||||
export let disabled: boolean = undefined
|
||||
|
||||
const classes = [
|
||||
'button',
|
||||
@@ -10,7 +11,7 @@
|
||||
</script>
|
||||
|
||||
{#if tag === 'button'}
|
||||
<button class={classes} on:click>
|
||||
<button class={classes} on:click disabled={disabled}>
|
||||
<slot />
|
||||
{text}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user