Show film field when editing non-Fuji photos
This commit is contained in:
parent
1a6d65add3
commit
7bf2c45145
@ -44,6 +44,10 @@ import ApplyRecipeTitleGloballyCheckbox from './ApplyRecipesGloballyCheckbox';
|
||||
import { FilmSimulation } from '@/film';
|
||||
import IconFavs from '@/components/icons/IconFavs';
|
||||
import IconHidden from '@/components/icons/IconHidden';
|
||||
import { MAKE_FUJIFILM } from '@/platforms/fujifilm';
|
||||
import {
|
||||
FILM_SIMULATION_FORM_INPUT_OPTIONS,
|
||||
} from '@/platforms/fujifilm/simulation';
|
||||
|
||||
const THUMBNAIL_SIZE = 300;
|
||||
|
||||
@ -406,6 +410,18 @@ export default function PhotoForm({
|
||||
};
|
||||
|
||||
switch (key) {
|
||||
case 'film':
|
||||
return formData.make === MAKE_FUJIFILM
|
||||
? <FieldSetWithStatus
|
||||
key={key}
|
||||
{...fieldProps}
|
||||
selectOptions={FILM_SIMULATION_FORM_INPUT_OPTIONS}
|
||||
selectOptionsDefaultLabel="Unknown"
|
||||
/>
|
||||
: <FieldSetWithStatus
|
||||
key={key}
|
||||
{...fieldProps}
|
||||
/>;
|
||||
case 'applyRecipeTitleGlobally':
|
||||
return <ApplyRecipeTitleGloballyCheckbox
|
||||
key={key}
|
||||
|
||||
@ -16,9 +16,6 @@ import {
|
||||
import { roundToNumber } from '@/utility/number';
|
||||
import { convertStringToArray, parameterize } from '@/utility/string';
|
||||
import { generateNanoid } from '@/utility/nanoid';
|
||||
import {
|
||||
FILM_SIMULATION_FORM_INPUT_OPTIONS,
|
||||
} from '@/platforms/fujifilm/simulation';
|
||||
import { FilmSimulation } from '@/film';
|
||||
import { GEO_PRIVACY_ENABLED } from '@/app/config';
|
||||
import { TAG_FAVS, getValidationMessageForTags } from '@/tag';
|
||||
@ -121,9 +118,7 @@ const FORM_METADATA = (
|
||||
model: { label: 'camera model' },
|
||||
film: {
|
||||
label: 'film',
|
||||
selectOptions: FILM_SIMULATION_FORM_INPUT_OPTIONS,
|
||||
selectOptionsDefaultLabel: 'Unknown',
|
||||
shouldHide: ({ make }) => make !== MAKE_FUJIFILM,
|
||||
note: 'Intended for Fujifilm cameras or film scans',
|
||||
shouldNotOverwriteWithNullDataOnSync: true,
|
||||
},
|
||||
recipeTitle: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user