mirror of
https://github.com/langgenius/dify.git
synced 2026-04-26 10:16:40 +08:00
model auth
This commit is contained in:
parent
61be6f5d2c
commit
4e02abf784
@ -135,6 +135,13 @@ const Item = ({
|
|||||||
</Badge>
|
</Badge>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
credential.from_enterprise && (
|
||||||
|
<Badge className='shrink-0'>
|
||||||
|
Enterprise
|
||||||
|
</Badge>
|
||||||
|
)
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -172,7 +179,7 @@ const Item = ({
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
!isOAuth && !disableEdit && (
|
!isOAuth && !disableEdit && !credential.from_enterprise && (
|
||||||
<Tooltip popupContent={t('common.operation.edit')}>
|
<Tooltip popupContent={t('common.operation.edit')}>
|
||||||
<ActionButton
|
<ActionButton
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
@ -194,7 +201,7 @@ const Item = ({
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
!disableDelete && (
|
!disableDelete && !credential.from_enterprise && (
|
||||||
<Tooltip popupContent={t('common.operation.delete')}>
|
<Tooltip popupContent={t('common.operation.delete')}>
|
||||||
<ActionButton
|
<ActionButton
|
||||||
className='hover:bg-transparent'
|
className='hover:bg-transparent'
|
||||||
|
|||||||
@ -22,4 +22,5 @@ export type Credential = {
|
|||||||
is_default: boolean
|
is_default: boolean
|
||||||
credentials?: Record<string, any>
|
credentials?: Record<string, any>
|
||||||
isWorkspaceDefault?: boolean
|
isWorkspaceDefault?: boolean
|
||||||
|
from_enterprise?: boolean
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user