-
-
Notifications
You must be signed in to change notification settings - Fork 809
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7546b7e
commit a34458c
Showing
5 changed files
with
34 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { FilterMode } from "src/core/generated-graphql"; | ||
import { ListFilterOptions } from "./filter-options"; | ||
import { GalleryListFilterOptions } from "./galleries"; | ||
import { ImageListFilterOptions } from "./images"; | ||
import { MovieListFilterOptions } from "./movies"; | ||
import { PerformerListFilterOptions } from "./performers"; | ||
import { SceneMarkerListFilterOptions } from "./scene-markers"; | ||
import { SceneListFilterOptions } from "./scenes"; | ||
import { StudioListFilterOptions } from "./studios"; | ||
import { TagListFilterOptions } from "./tags"; | ||
|
||
export function getFilterOptions(mode: FilterMode): ListFilterOptions { | ||
switch (mode) { | ||
case FilterMode.Scenes: | ||
return SceneListFilterOptions; | ||
case FilterMode.Performers: | ||
return PerformerListFilterOptions; | ||
case FilterMode.Studios: | ||
return StudioListFilterOptions; | ||
case FilterMode.Galleries: | ||
return GalleryListFilterOptions; | ||
case FilterMode.SceneMarkers: | ||
return SceneMarkerListFilterOptions; | ||
case FilterMode.Movies: | ||
return MovieListFilterOptions; | ||
case FilterMode.Tags: | ||
return TagListFilterOptions; | ||
case FilterMode.Images: | ||
return ImageListFilterOptions; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters