diff --git a/front/src/components/audio/AlbumEntries.vue b/front/src/components/audio/AlbumEntries.vue index a7658d5a0..c17258951 100644 --- a/front/src/components/audio/AlbumEntries.vue +++ b/front/src/components/audio/AlbumEntries.vue @@ -16,6 +16,9 @@ +
+ +
diff --git a/front/src/components/audio/ChannelEntries.vue b/front/src/components/audio/ChannelEntries.vue index 23f70cbed..6d1440864 100644 --- a/front/src/components/audio/ChannelEntries.vue +++ b/front/src/components/audio/ChannelEntries.vue @@ -6,11 +6,16 @@
- diff --git a/front/src/components/library/AlbumBase.vue b/front/src/components/library/AlbumBase.vue index 7b572e145..b6bc2bb47 100644 --- a/front/src/components/library/AlbumBase.vue +++ b/front/src/components/library/AlbumBase.vue @@ -117,7 +117,7 @@
- +
@@ -134,7 +134,6 @@ import TagsList from "@/components/tags/List" import ArtistLabel from '@/components/audio/ArtistLabel' import AlbumDropdown from './AlbumDropdown' - function groupByDisc(acc, track) { var dn = track.disc_number - 1 if (dn < 0) dn = 0 @@ -152,7 +151,7 @@ export default { PlayButton, TagsList, ArtistLabel, - AlbumDropdown, + AlbumDropdown }, data() { return { @@ -161,6 +160,8 @@ export default { artist: null, discs: [], libraries: [], + page: 1, + paginateBy: 50, } }, async created() { @@ -169,7 +170,7 @@ export default { methods: { async fetchData() { this.isLoading = true - let tracksResponse = axios.get(`tracks/`, {params: {ordering: 'disc_number,position', album: this.id, page_size: 100}}) + let tracksResponse = axios.get(`tracks/`, {params: {ordering: 'disc_number,position', album: this.id, page_size: this.paginateBy, page:this.page, include_channels: 'true'}}) let albumResponse = await axios.get(`albums/${this.id}/`, {params: {refresh: 'true'}}) let artistResponse = await axios.get(`artists/${albumResponse.data.artist.id}/`) this.artist = artistResponse.data @@ -181,7 +182,6 @@ export default { this.object.tracks = tracksResponse.data.results this.discs = this.object.tracks.reduce(groupByDisc, []) this.isLoading = false - }, remove () { let self = this @@ -232,6 +232,9 @@ export default { watch: { id() { this.fetchData() + }, + page() { + this.fetchData() } } } diff --git a/front/src/components/library/AlbumDetail.vue b/front/src/components/library/AlbumDetail.vue index dff0d1948..559a4a330 100644 --- a/front/src/components/library/AlbumDetail.vue +++ b/front/src/components/library/AlbumDetail.vue @@ -20,6 +20,15 @@ +
+ +