mirror of
https://github.com/NoCrypt/migu.git
synced 2026-01-11 20:10:22 +00:00
fix: user sort options
This commit is contained in:
parent
b67546e723
commit
d98f566bdb
2 changed files with 10 additions and 8 deletions
|
|
@ -480,18 +480,20 @@
|
|||
<div class='input-group'>
|
||||
<select class='form-control bg-dark-light' required bind:value={search.sort} on:change={clearTags} disabled={search.disableSearch}>
|
||||
<option value selected>Name</option>
|
||||
<option value='START_DATE_DESC'>Release Date</option>
|
||||
<option value='SCORE_DESC'>Score</option>
|
||||
<option value='POPULARITY_DESC'>Popularity</option>
|
||||
<option value='TRENDING_DESC'>Trending</option>
|
||||
<option value='UPDATED_AT_DESC'>Updated Date</option>
|
||||
{#if search.userList && search.title && !search.title.includes("Sequels")}
|
||||
<option value='UPDATED_TIME_DESC'>Last Updated</option>
|
||||
<option value='STARTED_ON_DESC'>Started On</option>
|
||||
<option value='START_DATE_DESC'>Release Date</option>
|
||||
<option value='UPDATED_AT_DESC'>Recently Updated</option>
|
||||
{#if search.userList && search.title && !search.missedList}
|
||||
<option value='UPDATED_TIME_DESC'>Last Updated</option>
|
||||
{#if !search.planningList}
|
||||
<option value='STARTED_ON_DESC'>Started On</option>
|
||||
{/if}
|
||||
{#if search.completedList}
|
||||
<option value='FINISHED_ON_DESC'>Finished On</option>
|
||||
<option value='USER_SCORE_DESC'>Your Score</option>
|
||||
{:else}
|
||||
{:else if !search.planningList}
|
||||
<option value='PROGRESS_DESC'>Your Progress</option>
|
||||
{/if}
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ function createSections () {
|
|||
}),
|
||||
// user specific sections
|
||||
{
|
||||
title: 'Sequels You Missed', variables : { sort: 'POPULARITY_DESC', userList: true, disableHide: true },
|
||||
title: 'Sequels You Missed', variables : { sort: 'POPULARITY_DESC', userList: true, missedList: true, disableHide: true },
|
||||
load: (page = 1, perPage = 50, variables = {}) => {
|
||||
if (Helper.isMalAuth()) return {} // not going to bother handling this, see below.
|
||||
const res = Helper.userLists(variables).then(res => {
|
||||
|
|
@ -143,7 +143,7 @@ function createSections () {
|
|||
hide: !Helper.isAuthorized()
|
||||
},
|
||||
{
|
||||
title: 'Planning List', variables : { test: 'Planning', sort: 'POPULARITY_DESC', userList: true, disableHide: true },
|
||||
title: 'Planning List', variables : { test: 'Planning', sort: 'POPULARITY_DESC', planningList: true, userList: true, disableHide: true },
|
||||
load: (page = 1, perPage = 50, variables = {}) => {
|
||||
const res = Helper.userLists(variables).then(res => {
|
||||
const mediaList = Helper.isAniAuth()
|
||||
|
|
|
|||
Loading…
Reference in a new issue