diff --git a/ui/v2.5/src/models/list-filter/criteria/groups.ts b/ui/v2.5/src/models/list-filter/criteria/groups.ts index f7fd42492..762ebf6e8 100644 --- a/ui/v2.5/src/models/list-filter/criteria/groups.ts +++ b/ui/v2.5/src/models/list-filter/criteria/groups.ts @@ -42,3 +42,13 @@ export const SubGroupsCriterionOption = new BaseGroupsCriterionOption( "sub_groups", "sub_groups" ); + +// redirects to GroupsCriterion +export const LegacyMoviesCriterionOption = new CriterionOption({ + messageID: "groups", + type: "movies", + modifierOptions, + defaultModifier, + inputType, + makeCriterion: () => new GroupsCriterion(GroupsCriterionOption), +}); diff --git a/ui/v2.5/src/models/list-filter/scenes.ts b/ui/v2.5/src/models/list-filter/scenes.ts index 965fa31be..7496da6b6 100644 --- a/ui/v2.5/src/models/list-filter/scenes.ts +++ b/ui/v2.5/src/models/list-filter/scenes.ts @@ -8,7 +8,10 @@ import { } from "./criteria/criterion"; import { HasMarkersCriterionOption } from "./criteria/has-markers"; import { SceneIsMissingCriterionOption } from "./criteria/is-missing"; -import { GroupsCriterionOption } from "./criteria/groups"; +import { + GroupsCriterionOption, + LegacyMoviesCriterionOption, +} from "./criteria/groups"; import { GalleriesCriterionOption } from "./criteria/galleries"; import { OrganizedCriterionOption } from "./criteria/organized"; import { PerformersCriterionOption } from "./criteria/performers"; @@ -106,6 +109,7 @@ const criterionOptions = [ // StudioTagsCriterionOption, StudiosCriterionOption, GroupsCriterionOption, + LegacyMoviesCriterionOption, GalleriesCriterionOption, createStringCriterionOption("url"), StashIDCriterionOption, diff --git a/ui/v2.5/src/models/list-filter/types.ts b/ui/v2.5/src/models/list-filter/types.ts index b632609ab..48e37c046 100644 --- a/ui/v2.5/src/models/list-filter/types.ts +++ b/ui/v2.5/src/models/list-filter/types.ts @@ -148,6 +148,7 @@ export type CriterionType = | "studios" | "scenes" | "groups" + | "movies" // legacy | "containing_groups" | "containing_group_count" | "sub_groups"