[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

File diff suppressed because one or more lines are too long

View File

@ -2995,9 +2995,9 @@
}
},
"node_modules/immutable": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/immutable/-/immutable-5.1.0.tgz",
"integrity": "sha512-L3LqPjnn4+m1ZNFBXo9QdXQhbfLwmcd+6IttT5hn821zDelhfaGLsVIEXJX0M5vJwc3NzA7zm1p5bFo8kDfn8A==",
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/immutable/-/immutable-5.1.1.tgz",
"integrity": "sha512-3jatXi9ObIsPGr3N5hGw/vWWcTkq6hUYhpQz4k0wLC+owqWi/LiugIw9x0EdNZ2yGedKN/HzePiBvaJRXa0Ujg==",
"dev": true,
"license": "MIT"
},

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