mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Add new fields to scene tagger (#3094)
* Add new fields to scene tagger * Update scraper docs with new fields * Set code and director in identify * Add new fields to identify dialog
This commit is contained in:
@@ -3,7 +3,12 @@ import { Form, Button, Table } from "react-bootstrap";
|
||||
import { Icon } from "src/components/Shared";
|
||||
import * as GQL from "src/core/generated-graphql";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
import { multiValueSceneFields, SceneField, sceneFields } from "./constants";
|
||||
import {
|
||||
multiValueSceneFields,
|
||||
SceneField,
|
||||
sceneFieldMessageID,
|
||||
sceneFields,
|
||||
} from "./constants";
|
||||
import { ThreeStateBoolean } from "./ThreeStateBoolean";
|
||||
import {
|
||||
faCheck,
|
||||
@@ -13,7 +18,7 @@ import {
|
||||
|
||||
interface IFieldOptionsEditor {
|
||||
options: GQL.IdentifyFieldOptions | undefined;
|
||||
field: string;
|
||||
field: SceneField;
|
||||
editField: () => void;
|
||||
editOptions: (o?: GQL.IdentifyFieldOptions | null) => void;
|
||||
editing: boolean;
|
||||
@@ -64,7 +69,7 @@ const FieldOptionsEditor: React.FC<IFieldOptionsEditor> = ({
|
||||
}, [resetOptions]);
|
||||
|
||||
function renderField() {
|
||||
return intl.formatMessage({ id: field });
|
||||
return intl.formatMessage({ id: sceneFieldMessageID(field) });
|
||||
}
|
||||
|
||||
function renderStrategy() {
|
||||
|
||||
Reference in New Issue
Block a user