Skip to content

Commit

Permalink
fix: filter shows correct messageID for scene_code, removed sort opti…
Browse files Browse the repository at this point in the history
…on for scene code
  • Loading branch information
HappyAxolotl committed Nov 3, 2022
1 parent 9c32c1f commit 66043ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ui/v2.5/src/models/list-filter/criteria/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ export function makeCriteria(type: CriterionType = "none") {
case "synopsis":
case "description":
return new StringCriterion(new StringCriterionOption(type, type));
case "code":
return new StringCriterion(new StringCriterionOption("scene_code", type));
case "scene_code":
return new StringCriterion(new StringCriterionOption(type, type, "code"));
case "interactive":
return new InteractiveCriterion();
case "captions":
Expand Down
3 changes: 1 addition & 2 deletions ui/v2.5/src/models/list-filter/scenes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const sortByOptions = [
"interactive",
"interactive_speed",
"perceptual_similarity",
"code",
...MediaSortByOptions,
].map(ListFilterOptions.createSortBy);

Expand All @@ -52,7 +51,7 @@ const displayModeOptions = [

const criterionOptions = [
createStringCriterionOption("title"),
createStringCriterionOption("code"),
createStringCriterionOption("scene_code"),
createMandatoryStringCriterionOption("path"),
createStringCriterionOption("details"),
createStringCriterionOption("director"),
Expand Down
2 changes: 1 addition & 1 deletion ui/v2.5/src/models/list-filter/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,4 @@ export type CriterionType =
| "ignore_auto_tag"
| "file_count"
| "description"
| "code";
| "scene_code";

0 comments on commit 66043ff

Please sign in to comment.