mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-15 08:45:54 -04:00
[web] Streamline load method names
This commit is contained in:
parent
a4e09b27f4
commit
f5aecdc4a4
File diff suppressed because one or more lines are too long
6
web-src/package-lock.json
generated
6
web-src/package-lock.json
generated
@ -2995,9 +2995,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/immutable": {
|
"node_modules/immutable": {
|
||||||
"version": "5.1.0",
|
"version": "5.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/immutable/-/immutable-5.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/immutable/-/immutable-5.1.1.tgz",
|
||||||
"integrity": "sha512-L3LqPjnn4+m1ZNFBXo9QdXQhbfLwmcd+6IttT5hn821zDelhfaGLsVIEXJX0M5vJwc3NzA7zm1p5bFo8kDfn8A==",
|
"integrity": "sha512-3jatXi9ObIsPGr3N5hGw/vWWcTkq6hUYhpQz4k0wLC+owqWi/LiugIw9x0EdNZ2yGedKN/HzePiBvaJRXa0Ujg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<template #content>
|
<template #content>
|
||||||
<list-albums-spotify :items="albums" />
|
<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>
|
<template #loading>
|
||||||
<div class="columns is-centered">
|
<div class="columns is-centered">
|
||||||
<div class="column has-text-centered">
|
<div class="column has-text-centered">
|
||||||
@ -114,7 +114,7 @@ export default {
|
|||||||
this.total = data.total
|
this.total = data.total
|
||||||
this.offset += data.limit
|
this.offset += data.limit
|
||||||
},
|
},
|
||||||
loadNext({ loaded }) {
|
load({ loaded }) {
|
||||||
const spotifyApi = new SpotifyWebApi()
|
const spotifyApi = new SpotifyWebApi()
|
||||||
spotifyApi.setAccessToken(this.servicesStore.spotify.webapi_token)
|
spotifyApi.setAccessToken(this.servicesStore.spotify.webapi_token)
|
||||||
spotifyApi
|
spotifyApi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user