[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:
2021-10-09 18:59:38 +02:00
parent 5e790ad68c
commit fd150e252c
4 changed files with 180 additions and 53 deletions

View File

@@ -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>