mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
Tweaks
* Fixed scene marker "scene_updated_at" sort option * Added "created_at" and "updated_at" sort options. Closes #19
This commit is contained in:
parent
3e25f78854
commit
543d2597ec
3 changed files with 64 additions and 58 deletions
File diff suppressed because one or more lines are too long
|
|
@ -198,7 +198,12 @@ func (qb *SceneMarkerQueryBuilder) Query(sceneMarkerFilter *SceneMarkerFilterTyp
|
|||
func (qb *SceneMarkerQueryBuilder) getSceneMarkerSort(findFilter *FindFilterType) string {
|
||||
sort := findFilter.GetSort("title")
|
||||
direction := findFilter.GetDirection()
|
||||
return getSort(sort, direction, "scene_markers")
|
||||
tableName := "scene_markers"
|
||||
if sort == "scenes_updated_at" {
|
||||
sort = "updated_at"
|
||||
tableName = "scene"
|
||||
}
|
||||
return getSort(sort, direction, tableName)
|
||||
}
|
||||
|
||||
func (qb *SceneMarkerQueryBuilder) querySceneMarkers(query string, args []interface{}, tx *sqlx.Tx) ([]SceneMarker, error) {
|
||||
|
|
|
|||
|
|
@ -122,6 +122,7 @@ export class ListFilterModel {
|
|||
break;
|
||||
}
|
||||
if (!!this.displayMode === false) { this.displayMode = this.displayModeOptions[0]; }
|
||||
this.sortByOptions = [...this.sortByOptions, "created_at", "updated_at"];
|
||||
}
|
||||
|
||||
public configureFromQueryParameters(rawParms: any) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue