mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 01:48:04 +08:00
features
This commit is contained in:
@ -4,14 +4,12 @@ type State = {
|
|||||||
mode: string
|
mode: string
|
||||||
showRunHistory: boolean
|
showRunHistory: boolean
|
||||||
showFeaturesPanel: boolean
|
showFeaturesPanel: boolean
|
||||||
showFeaturesModal: boolean
|
|
||||||
runStaus: string
|
runStaus: string
|
||||||
}
|
}
|
||||||
|
|
||||||
type Action = {
|
type Action = {
|
||||||
setShowRunHistory: (showRunHistory: boolean) => void
|
setShowRunHistory: (showRunHistory: boolean) => void
|
||||||
setShowFeaturesPanel: (showFeaturesPanel: boolean) => void
|
setShowFeaturesPanel: (showFeaturesPanel: boolean) => void
|
||||||
setShowFeaturesModal: (showFeaturesModal: boolean) => void
|
|
||||||
setRunStaus: (runStaus: string) => void
|
setRunStaus: (runStaus: string) => void
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -21,8 +19,6 @@ export const useStore = create<State & Action>(set => ({
|
|||||||
setShowRunHistory: showRunHistory => set(() => ({ showRunHistory })),
|
setShowRunHistory: showRunHistory => set(() => ({ showRunHistory })),
|
||||||
showFeaturesPanel: false,
|
showFeaturesPanel: false,
|
||||||
setShowFeaturesPanel: showFeaturesPanel => set(() => ({ showFeaturesPanel })),
|
setShowFeaturesPanel: showFeaturesPanel => set(() => ({ showFeaturesPanel })),
|
||||||
showFeaturesModal: false,
|
|
||||||
setShowFeaturesModal: showFeaturesModal => set(() => ({ showFeaturesModal })),
|
|
||||||
runStaus: '',
|
runStaus: '',
|
||||||
setRunStaus: runStaus => set(() => ({ runStaus })),
|
setRunStaus: runStaus => set(() => ({ runStaus })),
|
||||||
}))
|
}))
|
||||||
|
|||||||
Reference in New Issue
Block a user