Skip to content

Commit

Permalink
Merge pull request #1326 from automaton82/bugfix/MultipleChatflowList…
Browse files Browse the repository at this point in the history
…DeleteConfirmDialog

Fixing #1324 by lifting ConfirmDialog up.
  • Loading branch information
HenryHengZJ authored Dec 4, 2023
2 parents e9c1f58 + f60360f commit 1867f9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/ui/src/ui-component/button/FlowListMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import useConfirm from 'hooks/useConfirm'
import { uiBaseURL } from '../../store/constant'
import { closeSnackbar as closeSnackbarAction, enqueueSnackbar as enqueueSnackbarAction } from '../../store/actions'

import ConfirmDialog from '../dialog/ConfirmDialog'
import SaveChatflowDialog from '../dialog/SaveChatflowDialog'
import TagDialog from '../dialog/TagDialog'

Expand Down Expand Up @@ -264,7 +263,6 @@ export default function FlowListMenu({ chatflow, updateFlowsApi }) {
Delete
</MenuItem>
</StyledMenu>
<ConfirmDialog />
<SaveChatflowDialog
show={flowDialogOpen}
dialogProps={{
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/src/views/chatflows/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import ItemCard from 'ui-component/cards/ItemCard'
import { gridSpacing } from 'store/constant'
import WorkflowEmptySVG from 'assets/images/workflow_empty.svg'
import LoginDialog from 'ui-component/dialog/LoginDialog'
import ConfirmDialog from 'ui-component/dialog/ConfirmDialog'

// API
import chatflowsApi from 'api/chatflows'
Expand Down Expand Up @@ -212,6 +213,7 @@ const Chatflows = () => {
</Stack>
)}
<LoginDialog show={loginDialogOpen} dialogProps={loginDialogProps} onConfirm={onLoginClick} />
<ConfirmDialog />
</MainCard>
)
}
Expand Down

0 comments on commit 1867f9b

Please sign in to comment.