mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
rebased and made more chnges
This commit is contained in:
parent
37bc4f78d0
commit
dad364da17
@ -17,7 +17,7 @@ const BoardAutoAddSelect = () => {
|
||||
selectFromResult: ({ data }) => {
|
||||
const options: ComboboxOption[] = [
|
||||
{
|
||||
label: 'None',
|
||||
label: t('controlnet.none'),
|
||||
value: 'none',
|
||||
},
|
||||
].concat(
|
||||
|
@ -126,7 +126,7 @@ const GalleryImageGrid = () => {
|
||||
loadingText={t('gallery.loading')}
|
||||
flexShrink={0}
|
||||
>
|
||||
{`Load More (${currentData.ids.length} of ${currentViewTotal})`}
|
||||
{`${t('accessibility.loadMore')} (${currentData.ids.length} of ${currentViewTotal})`}
|
||||
</Button>
|
||||
</>
|
||||
);
|
||||
|
@ -7,16 +7,19 @@ import { isParameterMaskBlurMethod } from 'features/parameters/types/parameterSc
|
||||
import { memo, useCallback, useMemo } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
const options: ComboboxOption[] = [
|
||||
{ label: 'Box Blur', value: 'box' },
|
||||
{ label: 'Gaussian Blur', value: 'gaussian' },
|
||||
];
|
||||
|
||||
const ParamMaskBlurMethod = () => {
|
||||
const maskBlurMethod = useAppSelector((s) => s.generation.maskBlurMethod);
|
||||
const dispatch = useAppDispatch();
|
||||
const { t } = useTranslation();
|
||||
|
||||
const options: ComboboxOption[] = useMemo(
|
||||
() => [
|
||||
{ label: t('parameters.boxBlur'), value: 'box' },
|
||||
{ label: t('parameters.gaussianBlur'), value: 'gaussian' },
|
||||
],
|
||||
[t]
|
||||
);
|
||||
|
||||
const onChange = useCallback<ComboboxOnChange>(
|
||||
(v) => {
|
||||
if (!isParameterMaskBlurMethod(v?.value)) {
|
||||
|
@ -75,8 +75,8 @@ const InitialImageDisplay = () => {
|
||||
</Text>
|
||||
<Spacer />
|
||||
<IconButton
|
||||
tooltip="Upload Initial Image"
|
||||
aria-label="Upload Initial Image"
|
||||
tooltip={t('toast.uploadInitialImage')}
|
||||
aria-label={t('toast.uploadInitialImage')}
|
||||
icon={<PiUploadSimpleBold />}
|
||||
{...getUploadButtonProps()}
|
||||
/>
|
||||
@ -87,15 +87,9 @@ const InitialImageDisplay = () => {
|
||||
onClick={handleUseSizeInitialImage}
|
||||
isDisabled={!initialImage}
|
||||
/>
|
||||
<<<<<<< HEAD
|
||||
<IconButton
|
||||
tooltip="Reset Initial Image"
|
||||
aria-label="Reset Initial Image"
|
||||
=======
|
||||
<InvIconButton
|
||||
tooltip={t('toast.resetInitialImage')}
|
||||
aria-label={t('toast.resetInitialImage')}
|
||||
>>>>>>> a94e09658 (more strings and translations added)
|
||||
icon={<PiArrowCounterClockwiseBold />}
|
||||
onClick={handleReset}
|
||||
isDisabled={!initialImage}
|
||||
|
Loading…
Reference in New Issue
Block a user