|
|
|
@ -88,13 +88,13 @@ const Header: FC = () => {
|
|
|
|
|
|
|
|
|
|
|
|
const handleShowFeatures = useCallback(() => {
|
|
|
|
const handleShowFeatures = useCallback(() => {
|
|
|
|
const {
|
|
|
|
const {
|
|
|
|
|
|
|
|
showFeaturesPanel,
|
|
|
|
isRestoring,
|
|
|
|
isRestoring,
|
|
|
|
setShowFeaturesPanel,
|
|
|
|
setShowFeaturesPanel,
|
|
|
|
} = workflowStore.getState()
|
|
|
|
} = workflowStore.getState()
|
|
|
|
if (getNodesReadOnly() && !isRestoring)
|
|
|
|
if (getNodesReadOnly() && !isRestoring)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
setShowFeaturesPanel(!showFeaturesPanel)
|
|
|
|
setShowFeaturesPanel(true)
|
|
|
|
|
|
|
|
}, [workflowStore, getNodesReadOnly])
|
|
|
|
}, [workflowStore, getNodesReadOnly])
|
|
|
|
|
|
|
|
|
|
|
|
const handleCancelRestore = useCallback(() => {
|
|
|
|
const handleCancelRestore = useCallback(() => {
|
|
|
|
|