Use a default stash-box name if none provided (#1889)

* Use a default stash-box name if none provided
This commit is contained in:
WithoutPants
2021-10-27 11:54:55 +11:00
committed by GitHub
parent bdb8dc94d3
commit 2136ced25c
6 changed files with 15 additions and 5 deletions

View File

@@ -35,6 +35,7 @@ import { MovieSelect } from "src/components/Shared/Select";
import { useFormik } from "formik";
import { Prompt } from "react-router";
import { ConfigurationContext } from "src/hooks/Config";
import { stashboxDisplayName } from "src/utils/stashbox";
import { SceneMovieTable } from "./SceneMovieTable";
import { RatingStars } from "./RatingStars";
import { SceneScrapeDialog } from "./SceneScrapeDialog";
@@ -396,7 +397,7 @@ export const SceneEditPanel: React.FC<IProps> = ({
key={s.endpoint}
onClick={() => onScrapeQueryClicked({ stash_box_index: index })}
>
{s.name ?? "Stash-Box"}
{stashboxDisplayName(s.name, index)}
</Dropdown.Item>
))}
{queryableScrapers.map((s) => (
@@ -463,7 +464,7 @@ export const SceneEditPanel: React.FC<IProps> = ({
key={s.endpoint}
onClick={() => onScrapeClicked({ stash_box_index: index })}
>
{s.name ?? "Stash-Box"}
{stashboxDisplayName(s.name, index)}
</Dropdown.Item>
))}
{fragmentScrapers.map((s) => (