mirror of https://github.com/langgenius/dify.git
model auth
This commit is contained in:
parent
61be6f5d2c
commit
4e02abf784
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -22,4 +22,5 @@ export type Credential = {
|
|||
is_default: boolean
|
||||
credentials?: Record<string, any>
|
||||
isWorkspaceDefault?: boolean
|
||||
from_enterprise?: boolean
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue