Skip to content
Snippets Groups Projects
Commit 80170866 authored by Stefan Cruz's avatar Stefan Cruz
Browse files

fix: fix channel contents pagination

parent 0f7da617
No related branches found
No related tags found
No related merge requests found
......@@ -551,7 +551,7 @@ function getChannelContentsPager(context) {
if (context.order == Type.Order.Chronological) {
sort = LikedMediaSort.Recent;
} else if (context.order == Type.Order.Popular) {
} else if (context.order == "Popular") {
sort = LikedMediaSort.Visited;
} else {
sort = LikedMediaSort.Recent;
......@@ -595,6 +595,8 @@ function getChannelContentsPager(context) {
context.shouldLoadVideos = videosHasNext;
context.shouldLoadLives = livesHasNext;
context.page++;
return new ChannelVideoPager(context, videos, hasNext, getChannelContentsPager);
}
......
......@@ -39,11 +39,11 @@ DURATION_THRESHOLDS[MORE_THAN_ONE_HOUR] = { min: 3600, max: null };
/** The possible values which liked media connections can be sorted by. */
export enum LikedMediaSort {
export const LikedMediaSort = {
/** Sort liked medias by most recent. */
Recent = 'recent',
Recent : 'recent',
/** Sort liked medias by most viewed. */
Visited = 'visited'
Visited : 'visited'
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment