mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 10:28:10 +08:00
fix
This commit is contained in:
@ -79,11 +79,13 @@ const Item = ({
|
|||||||
value={renameValue}
|
value={renameValue}
|
||||||
onChange={e => setRenameValue(e.target.value)}
|
onChange={e => setRenameValue(e.target.value)}
|
||||||
placeholder={t('common.placeholder.input')}
|
placeholder={t('common.placeholder.input')}
|
||||||
|
onClick={e => e.stopPropagation()}
|
||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
size='small'
|
size='small'
|
||||||
variant='primary'
|
variant='primary'
|
||||||
onClick={() => {
|
onClick={(e) => {
|
||||||
|
e.stopPropagation()
|
||||||
onRename?.({
|
onRename?.({
|
||||||
credential_id: credential.id,
|
credential_id: credential.id,
|
||||||
name: renameValue,
|
name: renameValue,
|
||||||
@ -95,7 +97,10 @@ const Item = ({
|
|||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
size='small'
|
size='small'
|
||||||
onClick={() => setRenaming(false)}
|
onClick={(e) => {
|
||||||
|
e.stopPropagation()
|
||||||
|
setRenaming(false)
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{t('common.operation.cancel')}
|
{t('common.operation.cancel')}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user