From a877d5acc5c52b8667c65f725bbca9a52e40ec48 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 17 May 2016 21:03:00 +0200 Subject: Add ability to sort videos list --- server/initializers/constants.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'server/initializers') diff --git a/server/initializers/constants.js b/server/initializers/constants.js index 78bee5efe..4350bb892 100644 --- a/server/initializers/constants.js +++ b/server/initializers/constants.js @@ -26,6 +26,11 @@ const PODS_SCORE = { // Number of retries we make for the make retry requests (to friends...) let REQUEST_RETRIES = 10 +// Sortable columns per schema +const SORTABLE_COLUMNS = { + VIDEOS: [ 'name', '-name', 'duration', '-duration', 'createdDate', '-createdDate' ] +} + // Videos thumbnail size const THUMBNAILS_SIZE = '200x110' @@ -51,6 +56,7 @@ module.exports = { PAGINATION_COUNT_DEFAULT: PAGINATION_COUNT_DEFAULT, PODS_SCORE: PODS_SCORE, REQUEST_RETRIES: REQUEST_RETRIES, + SORTABLE_COLUMNS: SORTABLE_COLUMNS, THUMBNAILS_SIZE: THUMBNAILS_SIZE, THUMBNAILS_STATIC_PATH: THUMBNAILS_STATIC_PATH } -- cgit v1.2.3