mirror of
https://github.com/langgenius/dify.git
synced 2026-05-01 06:06:35 +08:00
chore: remove auto show modal
This commit is contained in:
parent
a98b5ca97e
commit
916bacb60e
@ -83,7 +83,7 @@ const Authorization: FC<Props> = ({
|
|||||||
}, [tempPayload, onChange, onHide])
|
}, [tempPayload, onChange, onHide])
|
||||||
return (
|
return (
|
||||||
<Modal
|
<Modal
|
||||||
title='Authorization'
|
title={t(`${i18nPrefix}.authorization`)}
|
||||||
wrapperClassName='z-50 w-400'
|
wrapperClassName='z-50 w-400'
|
||||||
isShow={isShow}
|
isShow={isShow}
|
||||||
onClose={onHide}
|
onClose={onHide}
|
||||||
|
|||||||
@ -53,7 +53,7 @@ const useConfig = (initInputs: HttpNodeType) => {
|
|||||||
const [isShowAuthorization, {
|
const [isShowAuthorization, {
|
||||||
setTrue: showAuthorization,
|
setTrue: showAuthorization,
|
||||||
setFalse: hideAuthorization,
|
setFalse: hideAuthorization,
|
||||||
}] = useBoolean(true)
|
}] = useBoolean(false)
|
||||||
|
|
||||||
const setAuthorization = useCallback((authorization: Authorization) => {
|
const setAuthorization = useCallback((authorization: Authorization) => {
|
||||||
const newInputs = produce(inputs, (draft: HttpNodeType) => {
|
const newInputs = produce(inputs, (draft: HttpNodeType) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user