mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Handle legacy scene movies criterion in saved filters (#5348)
This commit is contained in:
@@ -42,3 +42,13 @@ export const SubGroupsCriterionOption = new BaseGroupsCriterionOption(
|
|||||||
"sub_groups",
|
"sub_groups",
|
||||||
"sub_groups"
|
"sub_groups"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// redirects to GroupsCriterion
|
||||||
|
export const LegacyMoviesCriterionOption = new CriterionOption({
|
||||||
|
messageID: "groups",
|
||||||
|
type: "movies",
|
||||||
|
modifierOptions,
|
||||||
|
defaultModifier,
|
||||||
|
inputType,
|
||||||
|
makeCriterion: () => new GroupsCriterion(GroupsCriterionOption),
|
||||||
|
});
|
||||||
|
|||||||
@@ -8,7 +8,10 @@ import {
|
|||||||
} from "./criteria/criterion";
|
} from "./criteria/criterion";
|
||||||
import { HasMarkersCriterionOption } from "./criteria/has-markers";
|
import { HasMarkersCriterionOption } from "./criteria/has-markers";
|
||||||
import { SceneIsMissingCriterionOption } from "./criteria/is-missing";
|
import { SceneIsMissingCriterionOption } from "./criteria/is-missing";
|
||||||
import { GroupsCriterionOption } from "./criteria/groups";
|
import {
|
||||||
|
GroupsCriterionOption,
|
||||||
|
LegacyMoviesCriterionOption,
|
||||||
|
} from "./criteria/groups";
|
||||||
import { GalleriesCriterionOption } from "./criteria/galleries";
|
import { GalleriesCriterionOption } from "./criteria/galleries";
|
||||||
import { OrganizedCriterionOption } from "./criteria/organized";
|
import { OrganizedCriterionOption } from "./criteria/organized";
|
||||||
import { PerformersCriterionOption } from "./criteria/performers";
|
import { PerformersCriterionOption } from "./criteria/performers";
|
||||||
@@ -106,6 +109,7 @@ const criterionOptions = [
|
|||||||
// StudioTagsCriterionOption,
|
// StudioTagsCriterionOption,
|
||||||
StudiosCriterionOption,
|
StudiosCriterionOption,
|
||||||
GroupsCriterionOption,
|
GroupsCriterionOption,
|
||||||
|
LegacyMoviesCriterionOption,
|
||||||
GalleriesCriterionOption,
|
GalleriesCriterionOption,
|
||||||
createStringCriterionOption("url"),
|
createStringCriterionOption("url"),
|
||||||
StashIDCriterionOption,
|
StashIDCriterionOption,
|
||||||
|
|||||||
@@ -148,6 +148,7 @@ export type CriterionType =
|
|||||||
| "studios"
|
| "studios"
|
||||||
| "scenes"
|
| "scenes"
|
||||||
| "groups"
|
| "groups"
|
||||||
|
| "movies" // legacy
|
||||||
| "containing_groups"
|
| "containing_groups"
|
||||||
| "containing_group_count"
|
| "containing_group_count"
|
||||||
| "sub_groups"
|
| "sub_groups"
|
||||||
|
|||||||
Reference in New Issue
Block a user