model auth

This commit is contained in:
zxhlyh 2025-08-14 15:03:55 +08:00
parent 61be6f5d2c
commit 4e02abf784
2 changed files with 10 additions and 2 deletions

View File

@ -135,6 +135,13 @@ const Item = ({
</Badge>
)
}
{
credential.from_enterprise && (
<Badge className='shrink-0'>
Enterprise
</Badge>
)
}
</div>
)
}
@ -172,7 +179,7 @@ const Item = ({
)
}
{
!isOAuth && !disableEdit && (
!isOAuth && !disableEdit && !credential.from_enterprise && (
<Tooltip popupContent={t('common.operation.edit')}>
<ActionButton
disabled={disabled}
@ -194,7 +201,7 @@ const Item = ({
)
}
{
!disableDelete && (
!disableDelete && !credential.from_enterprise && (
<Tooltip popupContent={t('common.operation.delete')}>
<ActionButton
className='hover:bg-transparent'

View File

@ -22,4 +22,5 @@ export type Credential = {
is_default: boolean
credentials?: Record<string, any>
isWorkspaceDefault?: boolean
from_enterprise?: boolean
}