Skip to content

A self-hosted media server and file management system

feat: sort media by progress and completion count

aminnausin90a86297bae2
diff --git a/resources/js/views/VideoView.vue b/resources/js/views/VideoView.vue
index bfc22cc6..fee8dd40 100755
--- a/resources/js/views/VideoView.vue
+++ b/resources/js/views/VideoView.vue
@@ -127,6 +127,14 @@ const sortingOptions = computed(() => [
value: 'file_size',
disabled: false,
},
+ {
+ title: 'Watch Progress',
+ value: 'progress_percentage',
+ },
+ {
+ title: 'Times Completed',
+ value: 'completion_count',
+ },
]) satisfies ComputedRef<GenericSortOption<VideoResource>[]>; // Idk what the point of using satisfies is
const handleSort = (column: keyof VideoResource = 'file_modified_at', dir: SortDir = 1) => {