This commit is contained in:
zxhlyh 2025-07-16 15:06:04 +08:00
parent 52e7bb1848
commit 75d8cb4978
1 changed files with 7 additions and 2 deletions

View File

@ -79,11 +79,13 @@ const Item = ({
value={renameValue}
onChange={e => setRenameValue(e.target.value)}
placeholder={t('common.placeholder.input')}
onClick={e => e.stopPropagation()}
/>
<Button
size='small'
variant='primary'
onClick={() => {
onClick={(e) => {
e.stopPropagation()
onRename?.({
credential_id: credential.id,
name: renameValue,
@ -95,7 +97,10 @@ const Item = ({
</Button>
<Button
size='small'
onClick={() => setRenaming(false)}
onClick={(e) => {
e.stopPropagation()
setRenaming(false)
}}
>
{t('common.operation.cancel')}
</Button>