mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
Upstream removal: Update language
This commit is contained in:
@@ -2,8 +2,8 @@ import * as React from 'react';
|
|||||||
import TimeAgo from 'react-timeago';
|
import TimeAgo from 'react-timeago';
|
||||||
|
|
||||||
import { Box, Button, ButtonGroup, Tooltip, Typography } from '@mui/joy';
|
import { Box, Button, ButtonGroup, Tooltip, Typography } from '@mui/joy';
|
||||||
import DeleteOutlineIcon from '@mui/icons-material/DeleteOutline';
|
|
||||||
import PlayArrowRoundedIcon from '@mui/icons-material/PlayArrowRounded';
|
import PlayArrowRoundedIcon from '@mui/icons-material/PlayArrowRounded';
|
||||||
|
import StopRoundedIcon from '@mui/icons-material/StopRounded';
|
||||||
|
|
||||||
import type { DMessageGenerator } from '~/common/stores/chat/chat.message';
|
import type { DMessageGenerator } from '~/common/stores/chat/chat.message';
|
||||||
|
|
||||||
@@ -126,16 +126,16 @@ export function BlockOpUpstreamResume(props: {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{props.onDelete && (
|
{props.onDelete && (
|
||||||
<Tooltip title={deleteArmed ? 'Click again to confirm - removes the run upstream (no resume after)' : 'Delete the stored run upstream'}>
|
<Tooltip title={deleteArmed ? 'Click again to confirm - cancels the run upstream (no resume after)' : 'Cancel the upstream run'}>
|
||||||
<Button
|
<Button
|
||||||
loading={isDeleting}
|
loading={isDeleting}
|
||||||
color={deleteArmed ? 'danger' : 'neutral'}
|
color={deleteArmed ? 'danger' : 'neutral'}
|
||||||
variant={deleteArmed ? 'solid' : 'outlined'}
|
variant={deleteArmed ? 'solid' : 'outlined'}
|
||||||
startDecorator={<DeleteOutlineIcon />}
|
startDecorator={<StopRoundedIcon />}
|
||||||
onClick={handleDelete}
|
onClick={handleDelete}
|
||||||
disabled={isResuming || isCancelling || isDeleting}
|
disabled={isResuming || isCancelling || isDeleting}
|
||||||
>
|
>
|
||||||
{deleteArmed ? 'Confirm?' : 'Kill'}
|
{deleteArmed ? 'Confirm?' : 'Cancel'}
|
||||||
</Button>
|
</Button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user