[web] Streamline load method names

This commit is contained in:
Alain Nussbaumer
2025-03-28 00:01:45 +01:00
parent a4e09b27f4
commit f5aecdc4a4
3 changed files with 41 additions and 41 deletions

View File

@@ -13,7 +13,7 @@
</template>
<template #content>
<list-albums-spotify :items="albums" />
<vue-eternal-loading v-if="offset < total" :load="loadNext">
<vue-eternal-loading v-if="offset < total" :load="load">
<template #loading>
<div class="columns is-centered">
<div class="column has-text-centered">
@@ -114,7 +114,7 @@ export default {
this.total = data.total
this.offset += data.limit
},
loadNext({ loaded }) {
load({ loaded }) {
const spotifyApi = new SpotifyWebApi()
spotifyApi.setAccessToken(this.servicesStore.spotify.webapi_token)
spotifyApi