mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Add scenes filter to galleries (#4840)
This commit is contained in:
@@ -171,6 +171,7 @@ export type InputType =
|
||||
| "studios"
|
||||
| "tags"
|
||||
| "performer_tags"
|
||||
| "scenes"
|
||||
| "scene_tags"
|
||||
| "movies"
|
||||
| "galleries"
|
||||
|
||||
17
ui/v2.5/src/models/list-filter/criteria/scenes.ts
Normal file
17
ui/v2.5/src/models/list-filter/criteria/scenes.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { ILabeledIdCriterion, ILabeledIdCriterionOption } from "./criterion";
|
||||
|
||||
const inputType = "scenes";
|
||||
|
||||
export const ScenesCriterionOption = new ILabeledIdCriterionOption(
|
||||
"scenes",
|
||||
"scenes",
|
||||
true,
|
||||
inputType,
|
||||
() => new ScenesCriterion()
|
||||
);
|
||||
|
||||
export class ScenesCriterion extends ILabeledIdCriterion {
|
||||
constructor() {
|
||||
super(ScenesCriterionOption);
|
||||
}
|
||||
}
|
||||
@@ -10,6 +10,7 @@ import { OrganizedCriterionOption } from "./criteria/organized";
|
||||
import { HasChaptersCriterionOption } from "./criteria/has-chapters";
|
||||
import { PerformersCriterionOption } from "./criteria/performers";
|
||||
import { AverageResolutionCriterionOption } from "./criteria/resolution";
|
||||
import { ScenesCriterionOption } from "./criteria/scenes";
|
||||
import { StudiosCriterionOption } from "./criteria/studios";
|
||||
import {
|
||||
PerformerTagsCriterionOption,
|
||||
@@ -61,6 +62,7 @@ const criterionOptions = [
|
||||
createMandatoryNumberCriterionOption("performer_age"),
|
||||
PerformerFavoriteCriterionOption,
|
||||
createMandatoryNumberCriterionOption("image_count"),
|
||||
ScenesCriterionOption,
|
||||
StudiosCriterionOption,
|
||||
createStringCriterionOption("url"),
|
||||
createMandatoryNumberCriterionOption("file_count", "zip_file_count"),
|
||||
|
||||
@@ -145,6 +145,7 @@ export type CriterionType =
|
||||
| "tag_count"
|
||||
| "performers"
|
||||
| "studios"
|
||||
| "scenes"
|
||||
| "movies"
|
||||
| "galleries"
|
||||
| "birth_year"
|
||||
|
||||
Reference in New Issue
Block a user