mirror of
https://github.com/langgenius/dify.git
synced 2026-04-27 19:27:23 +08:00
fix default comment icon
This commit is contained in:
parent
4ba6de1116
commit
ee48ca7671
@ -48,7 +48,13 @@ export const createWorkflowSlice: StateCreator<WorkflowSliceShape> = set => ({
|
|||||||
setSelection: selection => set(() => ({ selection })),
|
setSelection: selection => set(() => ({ selection })),
|
||||||
bundleNodeSize: null,
|
bundleNodeSize: null,
|
||||||
setBundleNodeSize: bundleNodeSize => set(() => ({ bundleNodeSize })),
|
setBundleNodeSize: bundleNodeSize => set(() => ({ bundleNodeSize })),
|
||||||
controlMode: localStorage.getItem('workflow-operation-mode') === 'pointer' ? 'pointer' : localStorage.getItem('workflow-operation-mode') === 'hand' ? 'hand' : 'comment',
|
controlMode: (() => {
|
||||||
|
const storedControlMode = localStorage.getItem('workflow-operation-mode')
|
||||||
|
if (storedControlMode === 'pointer' || storedControlMode === 'hand' || storedControlMode === 'comment')
|
||||||
|
return storedControlMode
|
||||||
|
|
||||||
|
return 'pointer'
|
||||||
|
})(),
|
||||||
setControlMode: (controlMode) => {
|
setControlMode: (controlMode) => {
|
||||||
set(() => ({ controlMode }))
|
set(() => ({ controlMode }))
|
||||||
localStorage.setItem('workflow-operation-mode', controlMode)
|
localStorage.setItem('workflow-operation-mode', controlMode)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user