feat(ui): tweak reset workflow editor translations

This commit is contained in:
psychedelicious 2023-12-02 21:49:50 +11:00
parent 929b1f4a41
commit 92bc04dc87
3 changed files with 10 additions and 10 deletions

View File

@ -946,9 +946,9 @@
"problemSettingTitle": "Problem Setting Title",
"reloadNodeTemplates": "Reload Node Templates",
"removeLinearView": "Remove from Linear View",
"resetWorkflow": "Reset Workflow",
"resetWorkflowDesc": "Are you sure you want to reset this workflow?",
"resetWorkflowDesc2": "Resetting the workflow will clear all nodes, edges and workflow details.",
"resetWorkflow": "Reset Workflow Editor",
"resetWorkflowDesc": "Are you sure you want to reset the Workflow Editor?",
"resetWorkflowDesc2": "Resetting the Workflow Editor will clear all nodes, edges and workflow details. Saved workflows will not be affected.",
"scheduler": "Scheduler",
"schedulerDescription": "TODO",
"sDXLMainModelField": "SDXL Model",
@ -1275,7 +1275,6 @@
"modelAddedSimple": "Model Added",
"modelAddFailed": "Model Add Failed",
"nodesBrokenConnections": "Cannot load. Some connections are broken.",
"nodesCleared": "Nodes Cleared",
"nodesCorruptedGraph": "Cannot load. Graph seems to be corrupted.",
"nodesLoaded": "Nodes Loaded",
"nodesLoadedFailed": "Failed To Load Nodes",
@ -1645,6 +1644,7 @@
"noDescription": "No description",
"searchWorkflows": "Search Workflows",
"clearWorkflowSearchFilter": "Clear Workflow Search Filter",
"workflowName": "Workflow Name"
"workflowName": "Workflow Name",
"workflowEditorReset": "Workflow Editor Reset"
}
}

View File

@ -2,7 +2,7 @@ import { Flex } from '@chakra-ui/layout';
import { memo } from 'react';
import DownloadWorkflowButton from 'features/workflowLibrary/components/DownloadWorkflowButton';
import UploadWorkflowButton from 'features/workflowLibrary/components/LoadWorkflowFromFileButton';
import ResetWorkflowButton from 'features/workflowLibrary/components/ResetWorkflowButton';
import ResetWorkflowEditorButton from 'features/workflowLibrary/components/ResetWorkflowButton';
import SaveWorkflowButton from 'features/workflowLibrary/components/SaveWorkflowButton';
import SaveWorkflowAsButton from 'features/workflowLibrary/components/SaveWorkflowAsButton';
@ -21,7 +21,7 @@ const TopCenterPanel = () => {
<UploadWorkflowButton />
<SaveWorkflowButton />
<SaveWorkflowAsButton />
<ResetWorkflowButton />
<ResetWorkflowEditorButton />
</Flex>
);
};

View File

@ -19,7 +19,7 @@ import { memo, useCallback, useRef } from 'react';
import { useTranslation } from 'react-i18next';
import { FaTrash } from 'react-icons/fa';
const ResetWorkflowButton = () => {
const ResetWorkflowEditorButton = () => {
const { t } = useTranslation();
const dispatch = useAppDispatch();
const { isOpen, onOpen, onClose } = useDisclosure();
@ -31,7 +31,7 @@ const ResetWorkflowButton = () => {
dispatch(
addToast(
makeToast({
title: t('toast.nodesCleared'),
title: t('workflows.workflowEditorReset'),
status: 'success',
})
)
@ -84,4 +84,4 @@ const ResetWorkflowButton = () => {
);
};
export default memo(ResetWorkflowButton);
export default memo(ResetWorkflowEditorButton);