Skip to content

Commit 74709ae

Browse files
Mary HippMary Hipp
authored andcommitted
lint fix
1 parent 8caa41d commit 74709ae

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

invokeai/frontend/web/public/locales/en.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,8 @@
13201320
"heading": "Begin / End Step Percentage",
13211321
"paragraphs": [
13221322
"This setting determines which portion of the denoising (generation) process incorporates the guidance from this layer.",
1323-
"• Start Step (%): Specifies when to begin applying the guidance from this layer during the generation process.", "• End Step (%): Specifies when to stop applying this layer's guidance and revert general guidance from the model and other settings."
1323+
"• Start Step (%): Specifies when to begin applying the guidance from this layer during the generation process.",
1324+
"• End Step (%): Specifies when to stop applying this layer's guidance and revert general guidance from the model and other settings."
13241325
]
13251326
},
13261327
"controlNetControlMode": {
@@ -1344,7 +1345,9 @@
13441345
"controlNetWeight": {
13451346
"heading": "Weight",
13461347
"paragraphs": [
1347-
"Adjusts how strongly the layer influences the generation process", "• Higher Weight (.75-2): Creates a more significant impact on the final result.", "• Lower Weight (0-.75): Creates a smaller impact on the final result."
1348+
"Adjusts how strongly the layer influences the generation process",
1349+
"• Higher Weight (.75-2): Creates a more significant impact on the final result.",
1350+
"• Lower Weight (0-.75): Creates a smaller impact on the final result."
13481351
]
13491352
},
13501353
"dynamicPrompts": {

invokeai/frontend/web/src/features/controlLayers/components/IPAdapter/IPAdapterMethod.tsx

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import type { ComboboxOnChange } from '@invoke-ai/ui-library';
22
import { Combobox, FormControl, FormLabel } from '@invoke-ai/ui-library';
3+
import { useAppSelector } from 'app/store/storeHooks';
34
import { InformationalPopover } from 'common/components/InformationalPopover/InformationalPopover';
45
import type { IPMethodV2 } from 'features/controlLayers/store/types';
56
import { isIPMethodV2 } from 'features/controlLayers/store/types';
7+
import { selectSystemShouldEnableModelDescriptions } from 'features/system/store/systemSlice';
68
import { memo, useCallback, useMemo } from 'react';
79
import { useTranslation } from 'react-i18next';
810
import { assert } from 'tsafe';
9-
import { useAppSelector } from '../../../../app/store/storeHooks';
10-
import { selectSystemShouldEnableModelDescriptions } from '../../../system/store/systemSlice';
1111

1212
type Props = {
1313
method: IPMethodV2;
@@ -20,9 +20,21 @@ export const IPAdapterMethod = memo(({ method, onChange }: Props) => {
2020

2121
const options: { label: string; value: IPMethodV2 }[] = useMemo(
2222
() => [
23-
{ label: t('controlLayers.ipAdapterMethod.full'), value: 'full', description: shouldShowModelDescriptions ? t('controlLayers.ipAdapterMethod.fullDesc'): undefined },
24-
{ label: t('controlLayers.ipAdapterMethod.style'), value: 'style', description: shouldShowModelDescriptions ? t('controlLayers.ipAdapterMethod.styleDesc') : undefined },
25-
{ label: t('controlLayers.ipAdapterMethod.composition'), value: 'composition', description: shouldShowModelDescriptions ? t('controlLayers.ipAdapterMethod.compositionDesc'): undefined },
23+
{
24+
label: t('controlLayers.ipAdapterMethod.full'),
25+
value: 'full',
26+
description: shouldShowModelDescriptions ? t('controlLayers.ipAdapterMethod.fullDesc') : undefined,
27+
},
28+
{
29+
label: t('controlLayers.ipAdapterMethod.style'),
30+
value: 'style',
31+
description: shouldShowModelDescriptions ? t('controlLayers.ipAdapterMethod.styleDesc') : undefined,
32+
},
33+
{
34+
label: t('controlLayers.ipAdapterMethod.composition'),
35+
value: 'composition',
36+
description: shouldShowModelDescriptions ? t('controlLayers.ipAdapterMethod.compositionDesc') : undefined,
37+
},
2638
],
2739
[t, shouldShowModelDescriptions]
2840
);

0 commit comments

Comments
 (0)