aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-account
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+my-account')
-rw-r--r--client/src/app/+my-account/my-account-video-playlists/my-account-video-playlists.component.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlists.component.ts b/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlists.component.ts
index 42e4782eb..c6728cc30 100644
--- a/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlists.component.ts
+++ b/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlists.component.ts
@@ -48,7 +48,7 @@ export class MyAccountVideoPlaylistsComponent implements OnInit {
48 .pipe( 48 .pipe(
49 debounceTime(500)) 49 debounceTime(500))
50 .subscribe(() => { 50 .subscribe(() => {
51 this.loadVideoPlaylists() 51 this.loadVideoPlaylists(true)
52 }) 52 })
53 } 53 }
54 54
@@ -93,13 +93,13 @@ export class MyAccountVideoPlaylistsComponent implements OnInit {
93 this.videoPlaylistSearchChanged.next() 93 this.videoPlaylistSearchChanged.next()
94 } 94 }
95 95
96 private loadVideoPlaylists () { 96 private loadVideoPlaylists (reset = false) {
97 this.authService.userInformationLoaded 97 this.authService.userInformationLoaded
98 .pipe(flatMap(() => { 98 .pipe(flatMap(() => {
99 return this.videoPlaylistService.listAccountPlaylists(this.user.account, this.pagination, '-updatedAt', this.videoPlaylistsSearch) 99 return this.videoPlaylistService.listAccountPlaylists(this.user.account, this.pagination, '-updatedAt', this.videoPlaylistsSearch)
100 })) 100 }))
101 .subscribe(res => { 101 .subscribe(res => {
102 this.videoPlaylists = [] 102 if (reset) this.videoPlaylists = []
103 this.videoPlaylists = this.videoPlaylists.concat(res.data) 103 this.videoPlaylists = this.videoPlaylists.concat(res.data)
104 this.pagination.totalItems = res.total 104 this.pagination.totalItems = res.total
105 105