Commit 2c911374 by Archer Committed by GitHub

fix: fe (#5471)

parent d21d1e23
...@@ -155,6 +155,7 @@ const Header = () => { ...@@ -155,6 +155,7 @@ const Header = () => {
size={'xs'} size={'xs'}
w={'1rem'} w={'1rem'}
variant={'ghost'} variant={'ghost'}
onClick={isSaved ? onBack : onOpenBackConfirm}
/> />
</Box> </Box>
...@@ -214,9 +215,11 @@ const Header = () => { ...@@ -214,9 +215,11 @@ const Header = () => {
isPc, isPc,
currentTab, currentTab,
isSaved, isSaved,
onBack,
onOpenBackConfirm,
isV2Workflow, isV2Workflow,
t,
showHistoryModal, showHistoryModal,
t,
loading, loading,
onClickSave, onClickSave,
setShowHistoryModal, setShowHistoryModal,
......
...@@ -155,6 +155,7 @@ const Header = () => { ...@@ -155,6 +155,7 @@ const Header = () => {
size={'xs'} size={'xs'}
w={'1rem'} w={'1rem'}
variant={'ghost'} variant={'ghost'}
onClick={isSaved ? onBack : onOpenBackConfirm}
/> />
</Box> </Box>
...@@ -214,9 +215,11 @@ const Header = () => { ...@@ -214,9 +215,11 @@ const Header = () => {
isPc, isPc,
currentTab, currentTab,
isSaved, isSaved,
onBack,
onOpenBackConfirm,
isV2Workflow, isV2Workflow,
t,
showHistoryModal, showHistoryModal,
t,
loading, loading,
onClickSave, onClickSave,
setShowHistoryModal, setShowHistoryModal,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment