diff options
author | Chocobozzz <me@florianbigard.com> | 2021-05-10 09:31:33 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-05-10 09:38:11 +0200 |
commit | dc2b2938c293bae271a27a6c823f66496998b4d3 (patch) | |
tree | 5952837923f46f31684dfee68688091eb112938d /client/src/app/+my-library/+my-video-channels | |
parent | e024fd6a7494b37251da1d59470324305cdb4129 (diff) | |
download | PeerTube-dc2b2938c293bae271a27a6c823f66496998b4d3.tar.gz PeerTube-dc2b2938c293bae271a27a6c823f66496998b4d3.tar.zst PeerTube-dc2b2938c293bae271a27a6c823f66496998b4d3.zip |
Sort channels by -updatedAt
Diffstat (limited to 'client/src/app/+my-library/+my-video-channels')
-rw-r--r-- | client/src/app/+my-library/+my-video-channels/my-video-channels.component.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.ts b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.ts index 9e3bf35b4..67b3ee496 100644 --- a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.ts +++ b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.ts | |||
@@ -68,8 +68,14 @@ channel with the same name (${videoChannel.name})!`, | |||
68 | this.authService.userInformationLoaded | 68 | this.authService.userInformationLoaded |
69 | .pipe(mergeMap(() => { | 69 | .pipe(mergeMap(() => { |
70 | const user = this.authService.getUser() | 70 | const user = this.authService.getUser() |
71 | const options = { | ||
72 | account: user.account, | ||
73 | withStats: true, | ||
74 | search: this.search, | ||
75 | sort: '-updatedAt' | ||
76 | } | ||
71 | 77 | ||
72 | return this.videoChannelService.listAccountVideoChannels(user.account, null, true, this.search) | 78 | return this.videoChannelService.listAccountVideoChannels(options) |
73 | })).subscribe(res => { | 79 | })).subscribe(res => { |
74 | this.videoChannels = res.data | 80 | this.videoChannels = res.data |
75 | this.totalItems = res.total | 81 | this.totalItems = res.total |